From 846f81168b6fa22515136330f6795b4ff5b32698 Mon Sep 17 00:00:00 2001 From: Corentin SORIANO Date: Sat, 15 Feb 2025 14:20:01 +0100 Subject: [PATCH] GUACAMOLE-2032: Fix hasClientGroups() to no longer take into account the currently attached client. --- .../frontend/src/app/client/directives/guacClientPanel.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/guacamole/src/main/frontend/src/app/client/directives/guacClientPanel.js b/guacamole/src/main/frontend/src/app/client/directives/guacClientPanel.js index efd23932d..1aaafec4c 100644 --- a/guacamole/src/main/frontend/src/app/client/directives/guacClientPanel.js +++ b/guacamole/src/main/frontend/src/app/client/directives/guacClientPanel.js @@ -84,7 +84,10 @@ angular.module('client').directive('guacClientPanel', ['$injector', function gua * panel, false otherwise. */ $scope.hasClientGroups = function hasClientGroups() { - return $scope.clientGroups && $scope.clientGroups.length; + return $scope.clientGroups && $scope.clientGroups.some(function(group) { + // Check if there is any group that is not attached + return !group.attached; + }); }; /**