aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/UserDevices.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-15 15:12:46 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-15 15:12:46 +1300
commitd3ca7de349f1d8ab0d02bf783a2c7627af44c6fd (patch)
tree73684ec6f484001d25bb9c1c417d4f5c7aba2e1d /web/app/view/UserDevices.js
parent7925028c138228f369180adbd857f4cd986a6346 (diff)
downloadtrackermap-server-d3ca7de349f1d8ab0d02bf783a2c7627af44c6fd.tar.gz
trackermap-server-d3ca7de349f1d8ab0d02bf783a2c7627af44c6fd.tar.bz2
trackermap-server-d3ca7de349f1d8ab0d02bf783a2c7627af44c6fd.zip
Change user devices window
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
}]
});