mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-08 06:01:22 +00:00
GUAC-586: Only show available accounts if there are more than one.
This commit is contained in:
@@ -144,6 +144,17 @@ angular.module('manage').controller('manageUserController', ['$scope', '$injecto
|
||||
|
||||
})(authenticationService.getAvailableDataSources());
|
||||
|
||||
/**
|
||||
* Returns whether the list of all available account tabs should be shown.
|
||||
*
|
||||
* @returns {Boolean}
|
||||
* true if the list of available account tabs should be shown, false
|
||||
* otherwise.
|
||||
*/
|
||||
$scope.showAccountTabs = function showAccountTabs() {
|
||||
return !!$scope.accountPages && $scope.accountPages.length > 1;
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns whether critical data has completed being loaded.
|
||||
*
|
||||
|
Reference in New Issue
Block a user