aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/Device.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-04 19:22:55 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-04 19:22:55 +1300
commit84bc395ee2c22b596c30fae4054b72906e52d6b0 (patch)
treed8f31def0381c1345572ce63f5651d69cc1ba7d4 /web/app/view/Device.js
parent80c3aaf2af10c8d94b18f01a0a3d825437a5596d (diff)
downloadtrackermap-server-84bc395ee2c22b596c30fae4054b72906e52d6b0.tar.gz
trackermap-server-84bc395ee2c22b596c30fae4054b72906e52d6b0.tar.bz2
trackermap-server-84bc395ee2c22b596c30fae4054b72906e52d6b0.zip
Move settings into separate class
Diffstat (limited to 'web/app/view/Device.js')
-rw-r--r--web/app/view/Device.js26
1 files changed, 4 insertions, 22 deletions
diff --git a/web/app/view/Device.js b/web/app/view/Device.js
index ad338c648..e23151100 100644
--- a/web/app/view/Device.js
+++ b/web/app/view/Device.js
@@ -20,7 +20,8 @@ Ext.define('Traccar.view.Device', {
requires: [
'Traccar.view.DeviceController',
- 'Traccar.view.BaseEditToolbar'
+ 'Traccar.view.EditToolbar',
+ 'Traccar.view.SettingsMenu'
],
controller: 'device',
@@ -30,7 +31,7 @@ Ext.define('Traccar.view.Device', {
selType: 'rowmodel',
tbar: {
- xtype: 'baseEditToolbar',
+ xtype: 'editToolbar',
items: [{
disabled: true,
handler: 'onCommandClick',
@@ -41,26 +42,7 @@ Ext.define('Traccar.view.Device', {
}, {
xtype: 'tbfill'
}, {
- glyph: 'xf013@FontAwesome',
- tooltip: Strings.settingsTitle,
- tooltipType: 'title',
- menu: [{
- text: Strings.settingsUser,
- handler: 'onUserClick'
- }, {
- text: Strings.settingsServer,
- hidden: true,
- handler: 'onServerClick',
- reference: 'settingsServerButton'
- }, {
- text: Strings.settingsUsers,
- hidden: true,
- handler: 'onUsersClick',
- reference: 'settingsUsersButton'
- }, {
- text: Strings.loginLogout,
- handler: 'onLogoutClick'
- }]
+ xtype: 'settingsMenu'
}]
},