mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
GUACAMOLE-2032: Fix hasClientGroups() to no longer take into account the currently attached client.
This commit is contained in:
@@ -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;
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user