diff options
Diffstat (limited to 'web/app/view/SettingsMenuController.js')
-rw-r--r-- | web/app/view/SettingsMenuController.js | 7 |
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(); } |