aboutsummaryrefslogtreecommitdiff
path: root/web/app
diff options
context:
space:
mode:
Diffstat (limited to 'web/app')
-rw-r--r--web/app/controller/Root.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/web/app/controller/Root.js b/web/app/controller/Root.js
index 56a076edd..da3e3a2a9 100644
--- a/web/app/controller/Root.js
+++ b/web/app/controller/Root.js
@@ -74,15 +74,19 @@ Ext.define('Traccar.controller.Root', {
loadApp: function () {
Ext.getStore('Groups').load();
- Ext.getStore('Devices').load();
Ext.getStore('Geofences').load();
+ Ext.getStore('Devices').load({
+ scope: this,
+ callback: function () {
+ this.asyncUpdate(true);
+ }
+ });
Ext.get('attribution').remove();
if (this.isPhone) {
Ext.create('widget.mainMobile');
} else {
Ext.create('widget.main');
}
- this.asyncUpdate(true);
},
asyncUpdate: function (first) {