diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-04 19:05:01 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-04 19:05:01 +1300 |
commit | 80c3aaf2af10c8d94b18f01a0a3d825437a5596d (patch) | |
tree | 09fab6f041d01ef26acacb12f071c3d6a503fa24 /web/app/view/User.js | |
parent | 99d132dc78b42b6cc5833b3a7faf30d2fe56186f (diff) | |
download | trackermap-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/User.js')
-rw-r--r-- | web/app/view/User.js | 32 |
1 files changed, 11 insertions, 21 deletions
diff --git a/web/app/view/User.js b/web/app/view/User.js index b642b5518..0a833e5c9 100644 --- a/web/app/view/User.js +++ b/web/app/view/User.js @@ -19,7 +19,8 @@ Ext.define('Traccar.view.User', { xtype: 'userView', requires: [ - 'Traccar.view.UserController' + 'Traccar.view.UserController', + 'Traccar.view.BaseEditToolbar' ], controller: 'user', @@ -27,26 +28,15 @@ Ext.define('Traccar.view.User', { selType: 'rowmodel', - tbar: [{ - text: Strings.sharedAdd, - handler: 'onAddClick', - reference: 'deviceAddButton' - }, { - text: Strings.sharedEdit, - disabled: true, - handler: 'onEditClick', - reference: 'userEditButton' - }, { - text: Strings.sharedRemove, - disabled: true, - handler: 'onRemoveClick', - reference: 'userRemoveButton' - }, { - text: Strings.deviceTitle, - disabled: true, - handler: 'onDevicesClick', - reference: 'userDevicesButton' - }], + tbar: { + xtype: 'baseEditToolbar', + items: [{ + text: Strings.deviceTitle, + disabled: true, + handler: 'onDevicesClick', + reference: 'userDevicesButton' + }] + }, listeners: { selectionchange: 'onSelectionChange' |