aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/Device.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-04 19:05:01 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-04 19:05:01 +1300
commit80c3aaf2af10c8d94b18f01a0a3d825437a5596d (patch)
tree09fab6f041d01ef26acacb12f071c3d6a503fa24 /web/app/view/Device.js
parent99d132dc78b42b6cc5833b3a7faf30d2fe56186f (diff)
downloadtrackermap-server-80c3aaf2af10c8d94b18f01a0a3d825437a5596d.tar.gz
trackermap-server-80c3aaf2af10c8d94b18f01a0a3d825437a5596d.tar.bz2
trackermap-server-80c3aaf2af10c8d94b18f01a0a3d825437a5596d.zip
Create a base edit toolbar class
Diffstat (limited to 'web/app/view/Device.js')
-rw-r--r--web/app/view/Device.js88
1 files changed, 24 insertions, 64 deletions
diff --git a/web/app/view/Device.js b/web/app/view/Device.js
index cf7e3e473..ad338c648 100644
--- a/web/app/view/Device.js
+++ b/web/app/view/Device.js
@@ -29,9 +29,8 @@ Ext.define('Traccar.view.Device', {
title: Strings.deviceTitle,
selType: 'rowmodel',
- dockedItems: [{
- xtype : 'baseEditToolbar',
- dock : "top",
+ tbar: {
+ xtype: 'baseEditToolbar',
items: [{
disabled: true,
handler: 'onCommandClick',
@@ -39,70 +38,31 @@ Ext.define('Traccar.view.Device', {
glyph: 'xf093@FontAwesome',
tooltip: Strings.deviceCommand,
tooltipType: 'title'
- }]
- }],
-
- //tbar: {
- // xtype: 'baseEditToolbar',
- /*items: [{
- disabled: true,
- handler: 'onCommandClick',
- reference: 'deviceCommandButton',
- glyph: 'xf093@FontAwesome',
- tooltip: Strings.deviceCommand,
- tooltipType: 'title'
- }]*/
- //},
-
- /*tbar: [{
- handler: 'onAddClick',
- reference: 'deviceAddButton',
- glyph: 'xf067@FontAwesome',
- tooltip: Strings.sharedAdd,
- tooltipType: 'title'
- }, {
- disabled: true,
- handler: 'onEditClick',
- reference: 'deviceEditButton',
- glyph: 'xf040@FontAwesome',
- tooltip: Strings.sharedEdit,
- tooltipType: 'title'
- }, {
- disabled: true,
- handler: 'onRemoveClick',
- reference: 'deviceRemoveButton',
- glyph: 'xf00d@FontAwesome',
- tooltip: Strings.sharedRemove,
- tooltipType: 'title'
- }, {
- disabled: true,
- handler: 'onCommandClick',
- reference: 'deviceCommandButton',
- glyph: 'xf093@FontAwesome',
- tooltip: Strings.deviceCommand,
- tooltipType: 'title'
- }, {
- xtype: 'tbfill'
- }, {
- text: Strings.settingsTitle,
- menu: [{
- text: Strings.settingsUser,
- handler: 'onUserClick'
}, {
- text: Strings.settingsServer,
- hidden: true,
- handler: 'onServerClick',
- reference: 'settingsServerButton'
+ xtype: 'tbfill'
}, {
- text: Strings.settingsUsers,
- hidden: true,
- handler: 'onUsersClick',
- reference: 'settingsUsersButton'
+ 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'
+ }]
}]
- }, {
- text: Strings.loginLogout,
- handler: 'onLogoutClick'
- }],*/
+ },
listeners: {
selectionchange: 'onSelectionChange'