aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/User.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/User.js')
-rw-r--r--web/app/view/User.js32
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'