aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/permissions/UserAttributes.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/permissions/UserAttributes.js')
-rw-r--r--web/app/view/permissions/UserAttributes.js14
1 files changed, 13 insertions, 1 deletions
diff --git a/web/app/view/permissions/UserAttributes.js b/web/app/view/permissions/UserAttributes.js
index 7bca6223..a0a385ee 100644
--- a/web/app/view/permissions/UserAttributes.js
+++ b/web/app/view/permissions/UserAttributes.js
@@ -20,17 +20,29 @@ Ext.define('Traccar.view.permissions.UserAttributes', {
extend: 'Traccar.view.permissions.Base',
xtype: 'userAttributesView',
+ requires: [
+ 'Ext.grid.filters.Filters'
+ ],
+
+ plugins: 'gridfilters',
+
columns: {
items: [{
text: Strings.sharedDescription,
dataIndex: 'description',
flex: 1,
- minWidth: Traccar.Style.columnWidthNormal
+ minWidth: Traccar.Style.columnWidthNormal,
+ filter: 'string'
}, {
text: Strings.sharedAttribute,
dataIndex: 'attribute',
flex: 1,
minWidth: Traccar.Style.columnWidthNormal,
+ filter: {
+ type: 'list',
+ labelField: 'name',
+ store: 'PositionAttributes'
+ },
renderer: function (value) {
return Ext.getStore('PositionAttributes').getAttributeName(value);
}