mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 17:13:21 +00:00 
			
		
		
		
	GUAC-1053: Only display one link for settings within the user menu.
This commit is contained in:
		| @@ -274,8 +274,14 @@ angular.module('navigation').factory('userPageService', ['$injector', | ||||
|         if (homePage === SYSTEM_HOME_PAGE) | ||||
|             pages.push(homePage); | ||||
|  | ||||
|         // Add any settings pages | ||||
|         pages = pages.concat(generateSettingsPages(permissions)); | ||||
|         // Add generic link to the first-available settings page | ||||
|         var settingsPages = generateSettingsPages(permissions); | ||||
|         if (settingsPages.length) { | ||||
|             pages.push(new Page( | ||||
|                 'USER_MENU.ACTION_MANAGE_SETTINGS', | ||||
|                 settingsPages[0].url | ||||
|             )); | ||||
|         } | ||||
|          | ||||
|         return pages; | ||||
|     }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user