diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-15 15:12:46 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-15 15:12:46 +1300 |
commit | d3ca7de349f1d8ab0d02bf783a2c7627af44c6fd (patch) | |
tree | 73684ec6f484001d25bb9c1c417d4f5c7aba2e1d /web/app/view/UserDevices.js | |
parent | 7925028c138228f369180adbd857f4cd986a6346 (diff) | |
download | traccar-server-d3ca7de349f1d8ab0d02bf783a2c7627af44c6fd.tar.gz traccar-server-d3ca7de349f1d8ab0d02bf783a2c7627af44c6fd.tar.bz2 traccar-server-d3ca7de349f1d8ab0d02bf783a2c7627af44c6fd.zip |
Change user devices window
Diffstat (limited to 'web/app/view/UserDevices.js')
-rw-r--r-- | web/app/view/UserDevices.js | 35 |
1 files changed, 11 insertions, 24 deletions
diff --git a/web/app/view/UserDevices.js b/web/app/view/UserDevices.js index 5eeaac39b..256168946 100644 --- a/web/app/view/UserDevices.js +++ b/web/app/view/UserDevices.js @@ -19,23 +19,16 @@ Ext.define('Traccar.view.UserDevices', { xtype: 'userDevicesView', requires: [ - 'Traccar.view.UsersController', - 'Traccar.view.EditToolbar' + 'Traccar.view.UserDevicesController' ], - controller: 'users', - store: 'Users', + controller: 'userDevices', + store: 'Devices', - selType: 'rowmodel', - - tbar: { - xtype: 'editToolbar', - items: [{ - text: Strings.deviceTitle, - disabled: true, - handler: 'onDevicesClick', - reference: 'userDevicesButton' - }] + selModel: { + selType: 'checkboxmodel', + checkOnly: true, + showHeaderCheckbox: false }, listeners: { @@ -43,16 +36,10 @@ Ext.define('Traccar.view.UserDevices', { }, columns: [{ - text: Strings.userName, - dataIndex: 'name', - flex: 1 - }, { - text: Strings.userEmail, - dataIndex: 'email', - flex: 1 + text: Strings.deviceName, + dataIndex: 'name', flex: 1 }, { - text: Strings.userAdmin, - dataIndex: 'admin', - flex: 1 + text: Strings.deviceIdentifier, + dataIndex: 'uniqueId', flex: 1 }] }); |