aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/SettingsMenuController.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-05-10 12:14:44 +0500
committerAbyss777 <abyss@fox5.ru>2017-05-16 13:23:49 +0500
commita6765559b9388cea4ebc056cc207d7fc05206065 (patch)
tree9e9ef8577593c4ec8f5b31d1bfd496681fdf2dc7 /web/app/view/SettingsMenuController.js
parente200c1b9fe2f840d0d28836e19abaebb7c33210e (diff)
downloadtrackermap-web-a6765559b9388cea4ebc056cc207d7fc05206065.tar.gz
trackermap-web-a6765559b9388cea4ebc056cc207d7fc05206065.tar.bz2
trackermap-web-a6765559b9388cea4ebc056cc207d7fc05206065.zip
Implement computed attributes
Diffstat (limited to 'web/app/view/SettingsMenuController.js')
-rw-r--r--web/app/view/SettingsMenuController.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/web/app/view/SettingsMenuController.js b/web/app/view/SettingsMenuController.js
index 5fc499ee..2bd4b981 100644
--- a/web/app/view/SettingsMenuController.js
+++ b/web/app/view/SettingsMenuController.js
@@ -28,6 +28,7 @@ Ext.define('Traccar.view.SettingsMenuController', {
'Traccar.view.edit.Geofences',
'Traccar.view.Notifications',
'Traccar.view.edit.AttributeAliases',
+ 'Traccar.view.edit.ComputedAttributes',
'Traccar.view.Statistics',
'Traccar.view.dialog.DeviceDistance',
'Traccar.view.edit.Calendars',
@@ -57,6 +58,7 @@ Ext.define('Traccar.view.SettingsMenuController', {
}
if (admin || (!deviceReadonly && !readonly)) {
this.lookupReference('settingsAttributeAliasesButton').setHidden(false);
+ this.lookupReference('settingsComputedAttributesButton').setHidden(false);
}
},
@@ -127,6 +129,16 @@ Ext.define('Traccar.view.SettingsMenuController', {
}).show();
},
+ onComputedAttributesClick: function () {
+ Ext.create('Traccar.view.BaseWindow', {
+ title: Strings.sharedComputedAttributes,
+ modal: false,
+ items: {
+ xtype: 'computedAttributesView'
+ }
+ }).show();
+ },
+
onStatisticsClick: function () {
Ext.create('Traccar.view.BaseWindow', {
title: Strings.statisticsTitle,