From f53e23ca757845f5fd48a9cda853b21286b12e46 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sat, 24 Aug 2024 23:21:57 -0700 Subject: [PATCH] GUACAMOLE-1866: Remove application header from home page. --- .../src/app/home/controllers/homeController.js | 8 +++++--- .../app/home/directives/guacRecentConnections.js | 10 ---------- .../main/frontend/src/app/home/styles/home.css | 5 ----- .../app/home/templates/guacRecentConnections.html | 2 +- .../frontend/src/app/home/templates/home.html | 15 +++++++-------- .../frontend/src/app/index/styles/headers.css | 9 ++++++--- 6 files changed, 19 insertions(+), 30 deletions(-) diff --git a/guacamole/src/main/frontend/src/app/home/controllers/homeController.js b/guacamole/src/main/frontend/src/app/home/controllers/homeController.js index 92c149e6b..8d84b49e1 100644 --- a/guacamole/src/main/frontend/src/app/home/controllers/homeController.js +++ b/guacamole/src/main/frontend/src/app/home/controllers/homeController.js @@ -62,12 +62,14 @@ angular.module('home').controller('homeController', ['$scope', '$injector', ]; /** - * Returns true if recent connections should be displayed on the Guacamole - * home page, otherwise false. + * Returns whether the "Recent Connections" section should be displayed on + * the home screen. * * @returns {!boolean} + * true if recent connections should be displayed on the home screen, + * false otherwise. */ - $scope.willShowRecentConnections = function willShowRecentConnections() { + $scope.isRecentConnectionsVisible = function isRecentConnectionsVisible() { return preferenceService.preferences.showRecentConnections; }; diff --git a/guacamole/src/main/frontend/src/app/home/directives/guacRecentConnections.js b/guacamole/src/main/frontend/src/app/home/directives/guacRecentConnections.js index 57f141f3f..4be606524 100644 --- a/guacamole/src/main/frontend/src/app/home/directives/guacRecentConnections.js +++ b/guacamole/src/main/frontend/src/app/home/directives/guacRecentConnections.js @@ -74,16 +74,6 @@ angular.module('home').directive('guacRecentConnections', [function guacRecentCo && guacHistory.removeEntry(recentConnection.entry.id)); }; - /** - * Returns whether or not recent connections should be displayed. - * - * @returns {!boolean} - * true if recent connections should be displayed, otherwise false. - */ - $scope.willShowRecentConnections = function willShowRecentConnections() { - return preferenceService.preferences.showRecentConnections; - }; - /** * Returns whether recent connections are available for display. * diff --git a/guacamole/src/main/frontend/src/app/home/styles/home.css b/guacamole/src/main/frontend/src/app/home/styles/home.css index 5a0d9d216..8ae0486ed 100644 --- a/guacamole/src/main/frontend/src/app/home/styles/home.css +++ b/guacamole/src/main/frontend/src/app/home/styles/home.css @@ -77,11 +77,6 @@ a.home-connection, .empty.balancer a.home-connection-group { display: none; } -.header-app-name { - font-size: 0.85em; - box-shadow: none; -} - .recent-connections .connection .remove-recent { visibility: hidden; } diff --git a/guacamole/src/main/frontend/src/app/home/templates/guacRecentConnections.html b/guacamole/src/main/frontend/src/app/home/templates/guacRecentConnections.html index d24397445..2d25bc1db 100644 --- a/guacamole/src/main/frontend/src/app/home/templates/guacRecentConnections.html +++ b/guacamole/src/main/frontend/src/app/home/templates/guacRecentConnections.html @@ -1,4 +1,4 @@ -
+

{{'HOME.INFO_NO_RECENT_CONNECTIONS' | translate}}

diff --git a/guacamole/src/main/frontend/src/app/home/templates/home.html b/guacamole/src/main/frontend/src/app/home/templates/home.html index 6ba553025..872ac9803 100644 --- a/guacamole/src/main/frontend/src/app/home/templates/home.html +++ b/guacamole/src/main/frontend/src/app/home/templates/home.html @@ -2,16 +2,14 @@
-
-

{{'APP.NAME' | translate}}

+ +
+

{{'HOME.SECTION_HEADER_RECENT_CONNECTIONS' | translate}}

- - -
-

{{'HOME.SECTION_HEADER_RECENT_CONNECTIONS' | translate}}

-
- +
@@ -21,6 +19,7 @@ placeholder="'HOME.FIELD_PLACEHOLDER_FILTER' | translate" connection-properties="filteredConnectionProperties" connection-group-properties="filteredConnectionGroupProperties"> +