mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 00:53:21 +00:00 
			
		
		
		
	GUAC-1406: Add filtering to connection permissions within user edit screen.
This commit is contained in:
		| @@ -119,7 +119,26 @@ angular.module('manage').controller('manageUserController', ['$scope', '$injecto | ||||
|      * @type Object.<String, ConnectionGroup> | ||||
|      */ | ||||
|     $scope.rootGroups = null; | ||||
|      | ||||
|  | ||||
|     /** | ||||
|      * Array of all connection properties that are filterable. | ||||
|      * | ||||
|      * @type String[] | ||||
|      */ | ||||
|     $scope.filteredConnectionProperties = [ | ||||
|         'name', | ||||
|         'protocol' | ||||
|     ]; | ||||
|  | ||||
|     /** | ||||
|      * Array of all connection group properties that are filterable. | ||||
|      * | ||||
|      * @type String[] | ||||
|      */ | ||||
|     $scope.filteredConnectionGroupProperties = [ | ||||
|         'name' | ||||
|     ]; | ||||
|  | ||||
|     /** | ||||
|      * A map of data source identifiers to the set of all permissions | ||||
|      * associated with the current user under that data source, or null if the | ||||
|   | ||||
| @@ -87,11 +87,18 @@ THE SOFTWARE. | ||||
|  | ||||
|         <!-- Connection permissions section --> | ||||
|         <div class="connection-permissions" ng-show="canChangePermissions()"> | ||||
|             <h2 class="header">{{'MANAGE_USER.SECTION_HEADER_CONNECTIONS' | translate}}</h2> | ||||
|             <div class="header"> | ||||
|                 <h2>{{'MANAGE_USER.SECTION_HEADER_CONNECTIONS' | translate}}</h2> | ||||
|                 <guac-group-list-filter connection-groups="rootGroups" | ||||
|                     filtered-connection-groups="filteredRootGroups" | ||||
|                     placeholder="'MANAGE_USER.FIELD_PLACEHOLDER_FILTER' | translate" | ||||
|                     connection-properties="filteredConnectionProperties" | ||||
|                     connection-group-properties="filteredConnectionGroupProperties"></guac-group-list-filter> | ||||
|             </div> | ||||
|             <div class="section"> | ||||
|                 <guac-group-list | ||||
|                     context="groupListContext" | ||||
|                     connection-groups="rootGroups" | ||||
|                     connection-groups="filteredRootGroups" | ||||
|                     connection-template="'app/manage/templates/connectionPermission.html'" | ||||
|                     connection-group-template="'app/manage/templates/connectionGroupPermission.html'" | ||||
|                     page-size="20"/> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user