aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/edit/ComputedAttributes.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/edit/ComputedAttributes.js')
-rw-r--r--web/app/view/edit/ComputedAttributes.js16
1 files changed, 15 insertions, 1 deletions
diff --git a/web/app/view/edit/ComputedAttributes.js b/web/app/view/edit/ComputedAttributes.js
index b4699e84..5d344988 100644
--- a/web/app/view/edit/ComputedAttributes.js
+++ b/web/app/view/edit/ComputedAttributes.js
@@ -21,10 +21,13 @@ Ext.define('Traccar.view.edit.ComputedAttributes', {
xtype: 'computedAttributesView',
requires: [
+ 'Ext.grid.filters.Filters',
'Traccar.view.edit.ComputedAttributesController',
'Traccar.view.edit.Toolbar'
],
+ plugins: 'gridfilters',
+
controller: 'computedAttributes',
store: 'ComputedAttributes',
@@ -43,10 +46,16 @@ Ext.define('Traccar.view.edit.ComputedAttributes', {
},
items: [{
text: Strings.sharedDescription,
- dataIndex: 'description'
+ dataIndex: 'description',
+ filter: 'string'
}, {
text: Strings.sharedAttribute,
dataIndex: 'attribute',
+ filter: {
+ type: 'list',
+ labelField: 'name',
+ store: 'PositionAttributes'
+ },
renderer: function (value) {
return Ext.getStore('PositionAttributes').getAttributeName(value);
}
@@ -56,6 +65,11 @@ Ext.define('Traccar.view.edit.ComputedAttributes', {
}, {
text: Strings.sharedType,
dataIndex: 'type',
+ filter: {
+ type: 'list',
+ labelField: 'name',
+ store: 'AttributeValueTypes'
+ },
renderer: function (value) {
var type = Ext.getStore('AttributeValueTypes').getById(value);
if (type) {