diff options
author | Abyss777 <abyss@fox5.ru> | 2016-09-23 12:07:40 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-09-23 12:07:40 +0500 |
commit | ffae2a37db0a28159e28525a1f9108e95f388f5e (patch) | |
tree | 2a20d92979ce746d0825eb16669006835f297b50 /web/app/view/SettingsMenuController.js | |
parent | c781f6b095edf8a3cc3dadc48b79e015660b4092 (diff) | |
download | trackermap-web-ffae2a37db0a28159e28525a1f9108e95f388f5e.tar.gz trackermap-web-ffae2a37db0a28159e28525a1f9108e95f388f5e.tar.bz2 trackermap-web-ffae2a37db0a28159e28525a1f9108e95f388f5e.zip |
Implement attributes aliases
Diffstat (limited to 'web/app/view/SettingsMenuController.js')
-rw-r--r-- | web/app/view/SettingsMenuController.js | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/web/app/view/SettingsMenuController.js b/web/app/view/SettingsMenuController.js index 5c5a4517..b01e4f81 100644 --- a/web/app/view/SettingsMenuController.js +++ b/web/app/view/SettingsMenuController.js @@ -1,5 +1,5 @@ /* - * Copyright 2015 Anton Tananaev (anton.tananaev@gmail.com) + * Copyright 2015 - 2016 Anton Tananaev (anton.tananaev@gmail.com) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -27,6 +27,7 @@ Ext.define('Traccar.view.SettingsMenuController', { 'Traccar.view.Groups', 'Traccar.view.Geofences', 'Traccar.view.Notifications', + 'Traccar.view.AttributesAliases', 'Traccar.view.BaseWindow' ], @@ -42,6 +43,7 @@ Ext.define('Traccar.view.SettingsMenuController', { this.lookupReference('settingsGroupsButton').setHidden(false); this.lookupReference('settingsGeofencesButton').setHidden(false); this.lookupReference('settingsNotificationsButton').setHidden(false); + this.lookupReference('settingsAttributesAliasesButton').setHidden(false); } }, @@ -99,6 +101,16 @@ Ext.define('Traccar.view.SettingsMenuController', { }).show(); }, + onAttributesAliasesClick: function () { + Ext.create('Traccar.view.BaseWindow', { + title: Strings.sharedAttributesAliases, + modal: false, + items: { + xtype: 'attributesAliasesView' + } + }).show(); + }, + onLogoutClick: function () { Ext.create('Traccar.view.LoginController').logout(); } |