mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 09:03:21 +00:00 
			
		
		
		
	GUAC-1053: Only show the list of settings tabs if more than one is available.
This commit is contained in:
		| @@ -46,6 +46,17 @@ angular.module('manage').controller('settingsController', ['$scope', '$injector' | ||||
|      */ | ||||
|     $scope.activeTab = $routeParams.tab; | ||||
|  | ||||
|     /** | ||||
|      * Returns whether the list of all available settings tabs should be shown. | ||||
|      * | ||||
|      * @returns {Boolean} | ||||
|      *     true if the list of available settings tabs should be shown, false | ||||
|      *     otherwise. | ||||
|      */ | ||||
|     $scope.showAvailableTabs = function showAvailableTabs() { | ||||
|         return !!$scope.settingsPages && $scope.settingsPages.length > 1; | ||||
|     }; | ||||
|  | ||||
|     // Retrieve settings pages | ||||
|     userPageService.getSettingsPages() | ||||
|     .then(function settingsPagesRetrieved(pages) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user