aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/SettingsMenuController.js
diff options
context:
space:
mode:
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,