mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-10 07:01:21 +00:00
GUAC-586: Do not show tab levels which have only one tab.
This commit is contained in:
@@ -146,17 +146,6 @@ angular.module('manage').controller('manageUserController', ['$scope', '$injecto
|
||||
*/
|
||||
$scope.accountPages = [];
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
|
@@ -28,7 +28,7 @@ THE SOFTWARE.
|
||||
<guac-user-menu></guac-user-menu>
|
||||
</div>
|
||||
<div class="page-tabs">
|
||||
<guac-page-list pages="accountPages" ng-show="showAccountTabs()"></guac-page-list>
|
||||
<guac-page-list pages="accountPages"></guac-page-list>
|
||||
</div>
|
||||
|
||||
<!-- Warn if user is read-only -->
|
||||
|
Reference in New Issue
Block a user