mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 00:53:21 +00:00 
			
		
		
		
	All service call lists should be sorted.
This commit is contained in:
		| @@ -145,9 +145,6 @@ GuacamoleRootUI.reset = function() { | |||||||
|     try { |     try { | ||||||
|         connections = GuacamoleService.Connections.list(parameters); |         connections = GuacamoleService.Connections.list(parameters); | ||||||
|  |  | ||||||
|         // Sort connections by ID |  | ||||||
|         connections.sort(GuacamoleService.Connections.comparator); |  | ||||||
|  |  | ||||||
|         // Show admin elements if admin permissions available |         // Show admin elements if admin permissions available | ||||||
|         var permissions = GuacamoleService.Permissions.list(); |         var permissions = GuacamoleService.Permissions.list(); | ||||||
|         if (permissions.administer |         if (permissions.administer | ||||||
|   | |||||||
| @@ -316,6 +316,9 @@ GuacamoleService.Connections = { | |||||||
|              |              | ||||||
|         } |         } | ||||||
|  |  | ||||||
|  |         // Sort connections by ID | ||||||
|  |         connections.sort(GuacamoleService.Connections.comparator); | ||||||
|  |  | ||||||
|         return connections; |         return connections; | ||||||
|   |   | ||||||
|     }, |     }, | ||||||
| @@ -448,6 +451,9 @@ GuacamoleService.Users = { | |||||||
|         for (var i=0; i<userElements.length; i++) |         for (var i=0; i<userElements.length; i++) | ||||||
|             users.push(userElements[i].getAttribute("name")); |             users.push(userElements[i].getAttribute("name")); | ||||||
|  |  | ||||||
|  |         // Sort by username | ||||||
|  |         users.sort(); | ||||||
|  |  | ||||||
|         return users; |         return users; | ||||||
|       |       | ||||||
|     }, |     }, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user