aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-04-16 00:38:58 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-04-16 00:38:58 +1200
commit6a827ed071b0ff48264758632afc4965f0c46150 (patch)
tree5ded2ff4be0d8e802b3f96bf8fc14b6ecb92de39 /web
parent7c97c2b3807977765007ca00161513b56acd8548 (diff)
downloadtraccar-server-6a827ed071b0ff48264758632afc4965f0c46150.tar.gz
traccar-server-6a827ed071b0ff48264758632afc4965f0c46150.tar.bz2
traccar-server-6a827ed071b0ff48264758632afc4965f0c46150.zip
Temporary workaround for store update
Diffstat (limited to 'web')
-rw-r--r--web/app/view/DevicesController.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/web/app/view/DevicesController.js b/web/app/view/DevicesController.js
index e9a075ffc..1d4e3212f 100644
--- a/web/app/view/DevicesController.js
+++ b/web/app/view/DevicesController.js
@@ -30,10 +30,22 @@ 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);