aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/permissions/UserGroups.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/permissions/UserGroups.js')
-rw-r--r--web/app/view/permissions/UserGroups.js22
1 files changed, 21 insertions, 1 deletions
diff --git a/web/app/view/permissions/UserGroups.js b/web/app/view/permissions/UserGroups.js
index 0c23713..bc24201 100644
--- a/web/app/view/permissions/UserGroups.js
+++ b/web/app/view/permissions/UserGroups.js
@@ -19,12 +19,32 @@ Ext.define('Traccar.view.permissions.UserGroups', {
extend: 'Traccar.view.permissions.Base',
xtype: 'userGroupsView',
+ requires: [
+ 'Ext.grid.filters.Filters',
+ 'Traccar.AttributeFormatter'
+ ],
+
+ plugins: 'gridfilters',
+
columns: {
items: [{
text: Strings.sharedName,
dataIndex: 'name',
flex: 1,
- minWidth: Traccar.Style.columnWidthNormal
+ minWidth: Traccar.Style.columnWidthNormal,
+ filter: 'string'
+ }, {
+ text: Strings.groupDialog,
+ dataIndex: 'groupId',
+ flex: 1,
+ minWidth: Traccar.Style.columnWidthNormal,
+ hidden: true,
+ filter: {
+ type: 'list',
+ labelField: 'name',
+ store: 'AllGroups'
+ },
+ renderer: Traccar.AttributeFormatter.getFormatter('groupId')
}]
}
});