aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/SettingsMenuController.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-07-12 12:20:08 +0500
committerAbyss777 <abyss@fox5.ru>2017-07-12 12:20:08 +0500
commitd0d156b42eeba86d6a043be051470f05cd022919 (patch)
treec48863bbe645a1c10aa50cb4b2aa18f9022399df /web/app/view/SettingsMenuController.js
parent79f557f7b4bb209876977bba99f8c0a18f672b29 (diff)
downloadtrackermap-web-d0d156b42eeba86d6a043be051470f05cd022919.tar.gz
trackermap-web-d0d156b42eeba86d6a043be051470f05cd022919.tar.bz2
trackermap-web-d0d156b42eeba86d6a043be051470f05cd022919.zip
Implement Drivers
Diffstat (limited to 'web/app/view/SettingsMenuController.js')
-rw-r--r--web/app/view/SettingsMenuController.js11
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();
}