GUACAMOLE-2032: Fix hasClientGroups() to no longer take into account the currently attached client.

This commit is contained in:
Corentin SORIANO
2025-02-15 14:20:01 +01:00
parent 4b95f5533c
commit 846f81168b

View File

@@ -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;
});
};
/**