aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/edit/Devices.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-09-14 22:59:54 +1200
committerGitHub <noreply@github.com>2017-09-14 22:59:54 +1200
commitca960df40e15d7bfb88d2e0e41a269d4b069058c (patch)
tree0b41508a3f856700c353e5a5082c6ea829f13d43 /web/app/view/edit/Devices.js
parent4193ac77fd9f0da264284a6f73601963995554c8 (diff)
parentbe47d612285d484e2d0a2aa43174fb8e36acd816 (diff)
downloadtrackermap-web-ca960df40e15d7bfb88d2e0e41a269d4b069058c.tar.gz
trackermap-web-ca960df40e15d7bfb88d2e0e41a269d4b069058c.tar.bz2
trackermap-web-ca960df40e15d7bfb88d2e0e41a269d4b069058c.zip
Merge pull request #585 from Abyss777/saved_commands
Implement Saved Commands
Diffstat (limited to 'web/app/view/edit/Devices.js')
-rw-r--r--web/app/view/edit/Devices.js41
1 files changed, 14 insertions, 27 deletions
diff --git a/web/app/view/edit/Devices.js b/web/app/view/edit/Devices.js
index 4fdcab00..5ec452b8 100644
--- a/web/app/view/edit/Devices.js
+++ b/web/app/view/edit/Devices.js
@@ -37,67 +37,54 @@ Ext.define('Traccar.view.edit.Devices', {
tbar: {
componentCls: 'toolbar-header-style',
+ defaults: {
+ xtype: 'button',
+ disabled: true,
+ tooltipType: 'title'
+ },
items: [{
xtype: 'tbtext',
html: Strings.deviceTitle,
baseCls: 'x-panel-header-title-default'
}, {
- xtype: 'tbfill'
+ xtype: 'tbfill',
+ disabled: false
}, {
- xtype: 'button',
- disabled: true,
handler: 'onAddClick',
reference: 'toolbarAddButton',
glyph: 'xf067@FontAwesome',
- tooltip: Strings.sharedAdd,
- tooltipType: 'title'
+ tooltip: Strings.sharedAdd
}, {
- xtype: 'button',
- disabled: true,
handler: 'onEditClick',
reference: 'toolbarEditButton',
glyph: 'xf040@FontAwesome',
- tooltip: Strings.sharedEdit,
- tooltipType: 'title'
+ tooltip: Strings.sharedEdit
}, {
- xtype: 'button',
- disabled: true,
handler: 'onRemoveClick',
reference: 'toolbarRemoveButton',
glyph: 'xf00d@FontAwesome',
- tooltip: Strings.sharedRemove,
- tooltipType: 'title'
+ tooltip: Strings.sharedRemove
}, {
- xtype: 'button',
- disabled: true,
handler: 'onGeofencesClick',
reference: 'toolbarGeofencesButton',
glyph: 'xf21d@FontAwesome',
- tooltip: Strings.sharedGeofences,
- tooltipType: 'title'
+ tooltip: Strings.sharedGeofences
}, {
- xtype: 'button',
- disabled: true,
handler: 'onAttributesClick',
reference: 'toolbarAttributesButton',
glyph: 'xf0ae@FontAwesome',
- tooltip: Strings.sharedComputedAttributes,
- tooltipType: 'title'
+ tooltip: Strings.sharedComputedAttributes
}, {
xtype: 'button',
- disabled: true,
handler: 'onDriversClick',
reference: 'toolbarDriversButton',
glyph: 'xf2c2@FontAwesome',
- tooltip: Strings.sharedDrivers,
- tooltipType: 'title'
+ tooltip: Strings.sharedDrivers
}, {
- disabled: true,
handler: 'onCommandClick',
reference: 'deviceCommandButton',
glyph: 'xf093@FontAwesome',
- tooltip: Strings.deviceCommand,
- tooltipType: 'title'
+ tooltip: Strings.deviceCommand
}]
},