mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 13:41:21 +00:00
GUACAMOLE-220: Hide identifier set editor if there are no identifiers to edit.
This commit is contained in:
@@ -260,6 +260,20 @@ angular.module('manage').directive('identifierSetEditor', ['$injector',
|
||||
$scope.expanded = false;
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns whether there are absolutely no identifiers that can be
|
||||
* managed using this editor. If true, the editor is effectively
|
||||
* useless, as there is nothing whatsoever to display.
|
||||
*
|
||||
* @returns {Boolean}
|
||||
* true if there are no identifiers that can be managed using this
|
||||
* editor, false otherwise.
|
||||
*/
|
||||
$scope.isEmpty = function isEmpty() {
|
||||
return _.isEmpty($scope.identifiers)
|
||||
&& _.isEmpty($scope.identifiersAvailable);
|
||||
};
|
||||
|
||||
}];
|
||||
|
||||
return directive;
|
||||
|
Reference in New Issue
Block a user