mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-30 16:43:22 +00:00 
			
		
		
		
	GUACAMOLE-5: Define sorting weight for GroupListItem.
This commit is contained in:
		| @@ -58,7 +58,7 @@ | ||||
|     </div> | ||||
|  | ||||
|     <!-- Pager for connections / groups --> | ||||
|     <guac-pager page="childrenPage" items="rootItems | orderBy : 'name'" | ||||
|     <guac-pager page="childrenPage" items="rootItems | orderBy : ['weight', 'name']" | ||||
|                 page-size="pageSize"></guac-pager> | ||||
|  | ||||
| </div> | ||||
|   | ||||
| @@ -132,6 +132,16 @@ angular.module('groupList').factory('GroupListItem', ['ConnectionGroup', functio | ||||
|          */ | ||||
|         this.wrappedItem = template.wrappedItem; | ||||
|  | ||||
|         /** | ||||
|          * The sorting weight to apply when displaying this GroupListItem. This | ||||
|          * weight is relative only to other sorting weights. If two items have | ||||
|          * the same weight, they will be sorted based on their names. | ||||
|          * | ||||
|          * @type Number | ||||
|          * @default 0 | ||||
|          */ | ||||
|         this.weight = template.weight || 0; | ||||
|  | ||||
|     }; | ||||
|  | ||||
|     /** | ||||
|   | ||||
		Reference in New Issue
	
	Block a user