aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/SettingsMenuController.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-05-17 11:34:09 +1200
committerGitHub <noreply@github.com>2017-05-17 11:34:09 +1200
commit31187bc2a3ae41ab553a6472b7592895e3641fe8 (patch)
treed5b130414ed164586efb867b7649de1617f2c90c /web/app/view/SettingsMenuController.js
parente200c1b9fe2f840d0d28836e19abaebb7c33210e (diff)
parent54137d72265355c04c4b71836d524391ea144998 (diff)
downloadtrackermap-web-31187bc2a3ae41ab553a6472b7592895e3641fe8.tar.gz
trackermap-web-31187bc2a3ae41ab553a6472b7592895e3641fe8.tar.bz2
trackermap-web-31187bc2a3ae41ab553a6472b7592895e3641fe8.zip
Merge pull request #486 from Abyss777/computed_attributes
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,