From 6ce1f7d481aec69107ef34924bda57fafbce67ed Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 15 Oct 2015 15:26:25 +1300 Subject: Service call to get all devices --- web/app/view/UserDevices.js | 3 ++- web/app/view/UserDevicesController.js | 7 ++----- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'web/app/view') diff --git a/web/app/view/UserDevices.js b/web/app/view/UserDevices.js index 256168946..df03bca84 100644 --- a/web/app/view/UserDevices.js +++ b/web/app/view/UserDevices.js @@ -23,7 +23,7 @@ Ext.define('Traccar.view.UserDevices', { ], controller: 'userDevices', - store: 'Devices', + store: 'AllDevices', selModel: { selType: 'checkboxmodel', @@ -43,3 +43,4 @@ Ext.define('Traccar.view.UserDevices', { dataIndex: 'uniqueId', flex: 1 }] }); +32 \ No newline at end of file diff --git a/web/app/view/UserDevicesController.js b/web/app/view/UserDevicesController.js index ec40fec02..a0b3de36d 100644 --- a/web/app/view/UserDevicesController.js +++ b/web/app/view/UserDevicesController.js @@ -19,13 +19,10 @@ Ext.define('Traccar.view.UserDevicesController', { alias: 'controller.userDevices', init: function () { - //Ext.getStore('Users').load(); + this.getView().getStore().load(); }, onSelectionChange: function (selected) { - /*var disabled = selected.length > 0; - this.lookupReference('toolbarEditButton').setDisabled(disabled); - this.lookupReference('toolbarRemoveButton').setDisabled(disabled); - this.lookupReference('userDevicesButton').setDisabled(disabled);*/ + console.log(selected); // TODO } }); -- cgit v1.2.3