aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/edit/Groups.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-06-19 23:45:00 +1200
committerGitHub <noreply@github.com>2017-06-19 23:45:00 +1200
commit5a6044faac45b377efabe363655ec21790bd955b (patch)
treee5d60feb3a6d17775c4b63379920d9ff88aaa379 /web/app/view/edit/Groups.js
parentf3ce72afbd49ccde94178158147de7b378128a55 (diff)
parent56a5de3dc50e438884c5636c11f31e48bf19a15e (diff)
downloadtrackermap-web-5a6044faac45b377efabe363655ec21790bd955b.tar.gz
trackermap-web-5a6044faac45b377efabe363655ec21790bd955b.tar.bz2
trackermap-web-5a6044faac45b377efabe363655ec21790bd955b.zip
Merge pull request #507 from Abyss777/column_filters
Column filters to most windows
Diffstat (limited to 'web/app/view/edit/Groups.js')
-rw-r--r--web/app/view/edit/Groups.js17
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')
}]
}
});