mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 05:31:22 +00:00
GUACAMOLE-5: Define sorting weight for GroupListItem.
This commit is contained in:
@@ -58,7 +58,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Pager for connections / groups -->
|
<!-- 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>
|
page-size="pageSize"></guac-pager>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@@ -132,6 +132,16 @@ angular.module('groupList').factory('GroupListItem', ['ConnectionGroup', functio
|
|||||||
*/
|
*/
|
||||||
this.wrappedItem = template.wrappedItem;
|
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