diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/app/view/Devices.js | 13 | ||||
-rw-r--r-- | web/app/view/DevicesController.js | 12 |
2 files changed, 0 insertions, 25 deletions
diff --git a/web/app/view/Devices.js b/web/app/view/Devices.js index ae46ba080..366831849 100644 --- a/web/app/view/Devices.js +++ b/web/app/view/Devices.js @@ -37,19 +37,6 @@ Ext.define('Traccar.view.Devices', { title: Strings.deviceTitle, selType: 'rowmodel', - features: [{ - ftype: 'grouping', - groupHeaderTpl: Ext.create('Ext.XTemplate', '{name:this.getGroupName}', { - getGroupName: function (v) { - var groupId = Number(v); - if (groupId) { - return Ext.getStore('Groups').getById(groupId).get('name'); - } else { - return Strings.groupNoGroup; - } - } - }) - }], tbar: { xtype: 'editToolbar', diff --git a/web/app/view/DevicesController.js b/web/app/view/DevicesController.js index 1d4e3212f..e9a075ffc 100644 --- a/web/app/view/DevicesController.js +++ b/web/app/view/DevicesController.js @@ -30,22 +30,10 @@ Ext.define('Traccar.view.DevicesController', { selectDevice: 'selectDevice', selectReport: 'selectReport' } - }, - store: { - '#Groups': { - update: 'reloadList' - }, - '#Devices': { - add: 'reloadList' - } } } }, - reloadList: function() { - Ext.getStore('Devices').reload(); - }, - init: function () { var readonly = Traccar.app.getServer().get('readonly') && !Traccar.app.getUser().get('admin'); this.lookupReference('toolbarAddButton').setVisible(!readonly); |