GUACAMOLE-2032: Merge correction to hasClientGroups() behavior vs. attached client.
This commit is contained in:
1 file changed
+4
-1
@@ -84,7 +84,10 @@ angular.module('client').directive('guacClientPanel', ['$injector', function gua
|
|||||||
* panel, false otherwise.
|
* panel, false otherwise.
|
||||||
*/
|
*/
|
||||||
$scope.hasClientGroups = function hasClientGroups() {
|
$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