diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-07-14 20:46:03 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-14 20:46:03 +1200 |
commit | dab4694bcab525bcc26e6af42aacc45901093dc2 (patch) | |
tree | 77631b518eacf8b9a59d9785068624e5ef52003f /web/app/view/SettingsMenuController.js | |
parent | 79f557f7b4bb209876977bba99f8c0a18f672b29 (diff) | |
parent | d40b862b56075e1544d3ed117576e05354b398a1 (diff) | |
download | trackermap-web-dab4694bcab525bcc26e6af42aacc45901093dc2.tar.gz trackermap-web-dab4694bcab525bcc26e6af42aacc45901093dc2.tar.bz2 trackermap-web-dab4694bcab525bcc26e6af42aacc45901093dc2.zip |
Merge pull request #524 from Abyss777/drivers
Drivers implementation
Diffstat (limited to 'web/app/view/SettingsMenuController.js')
-rw-r--r-- | web/app/view/SettingsMenuController.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/web/app/view/SettingsMenuController.js b/web/app/view/SettingsMenuController.js index a1883a61..102120d8 100644 --- a/web/app/view/SettingsMenuController.js +++ b/web/app/view/SettingsMenuController.js @@ -26,6 +26,7 @@ Ext.define('Traccar.view.SettingsMenuController', { 'Traccar.view.edit.Users', 'Traccar.view.edit.Groups', 'Traccar.view.edit.Geofences', + 'Traccar.view.edit.Drivers', 'Traccar.view.Notifications', 'Traccar.view.edit.AttributeAliases', 'Traccar.view.edit.ComputedAttributes', @@ -55,6 +56,7 @@ Ext.define('Traccar.view.SettingsMenuController', { this.lookupReference('settingsGeofencesButton').setHidden(false); this.lookupReference('settingsNotificationsButton').setHidden(false); this.lookupReference('settingsCalendarsButton').setHidden(false); + this.lookupReference('settingsDriversButton').setHidden(false); } if (admin || (!deviceReadonly && !readonly)) { this.lookupReference('settingsAttributeAliasesButton').setHidden(false); @@ -156,6 +158,15 @@ Ext.define('Traccar.view.SettingsMenuController', { }).show(); }, + onDriversClick: function () { + Ext.create('Traccar.view.BaseWindow', { + title: Strings.sharedDrivers, + items: { + xtype: 'driversView' + } + }).show(); + }, + onLogoutClick: function () { Ext.create('Traccar.view.dialog.LoginController').logout(); } |