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