aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/SettingsMenuController.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-10-23 10:58:06 +0500
committerAbyss777 <abyss@fox5.ru>2016-10-23 10:58:06 +0500
commit7f35b89560276d2ae23fb1164a429283fb64ff45 (patch)
tree3c13dfd5f54f7bf9fd6f020015cbea1a06dbe398 /web/app/view/SettingsMenuController.js
parent8c76630be352653800f460e0160d9ce3348f1443 (diff)
downloadtrackermap-web-7f35b89560276d2ae23fb1164a429283fb64ff45.tar.gz
trackermap-web-7f35b89560276d2ae23fb1164a429283fb64ff45.tar.bz2
trackermap-web-7f35b89560276d2ae23fb1164a429283fb64ff45.zip
- Implement reset device distance dialog
- Add label to device selector in AttributeAliases
Diffstat (limited to 'web/app/view/SettingsMenuController.js')
-rw-r--r--web/app/view/SettingsMenuController.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/web/app/view/SettingsMenuController.js b/web/app/view/SettingsMenuController.js
index 9d547c55..12630dd2 100644
--- a/web/app/view/SettingsMenuController.js
+++ b/web/app/view/SettingsMenuController.js
@@ -29,6 +29,7 @@ Ext.define('Traccar.view.SettingsMenuController', {
'Traccar.view.Notifications',
'Traccar.view.AttributeAliases',
'Traccar.view.Statistics',
+ 'Traccar.view.DeviceDistanceDialog',
'Traccar.view.BaseWindow'
],
@@ -40,6 +41,7 @@ Ext.define('Traccar.view.SettingsMenuController', {
this.lookupReference('settingsServerButton').setHidden(false);
this.lookupReference('settingsUsersButton').setHidden(false);
this.lookupReference('settingsStatisticsButton').setHidden(false);
+ this.lookupReference('settingsDeviceDistanceButton').setHidden(false);
}
if (admin || !readonly) {
this.lookupReference('settingsGroupsButton').setHidden(false);
@@ -122,6 +124,11 @@ Ext.define('Traccar.view.SettingsMenuController', {
}).show();
},
+ onDeviceDistanceClick: function () {
+ var dialog = Ext.create('Traccar.view.DeviceDistanceDialog');
+ dialog.show();
+ },
+
onLogoutClick: function () {
Ext.create('Traccar.view.LoginController').logout();
}