diff options
Diffstat (limited to 'web/app/view/edit/Groups.js')
-rw-r--r-- | web/app/view/edit/Groups.js | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/web/app/view/edit/Groups.js b/web/app/view/edit/Groups.js index 88bbd7ba..d4d08305 100644 --- a/web/app/view/edit/Groups.js +++ b/web/app/view/edit/Groups.js @@ -20,10 +20,14 @@ Ext.define('Traccar.view.edit.Groups', { xtype: 'groupsView', requires: [ + 'Ext.grid.filters.Filters', + 'Traccar.AttributeFormatter', 'Traccar.view.edit.GroupsController', 'Traccar.view.edit.Toolbar' ], + plugins: 'gridfilters', + controller: 'groups', store: 'Groups', @@ -59,7 +63,18 @@ Ext.define('Traccar.view.edit.Groups', { }, items: [{ text: Strings.sharedName, - dataIndex: 'name' + dataIndex: 'name', + filter: 'string' + }, { + text: Strings.groupDialog, + dataIndex: 'groupId', + hidden: true, + filter: { + type: 'list', + labelField: 'name', + store: 'AllGroups' + }, + renderer: Traccar.AttributeFormatter.getFormatter('groupId') }] } }); |