diff options
Diffstat (limited to 'web/app/controller/Root.js')
-rw-r--r-- | web/app/controller/Root.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/web/app/controller/Root.js b/web/app/controller/Root.js index 9ae7fa761..d4b3e794d 100644 --- a/web/app/controller/Root.js +++ b/web/app/controller/Root.js @@ -18,7 +18,10 @@ Ext.define('Traccar.controller.Root', { extend: 'Ext.app.Controller', requires: [ - 'Traccar.LoginManager' + 'Traccar.LoginManager', + 'Traccar.view.login.Login', + 'Traccar.view.Main', + 'Traccar.view.MainMobile' ], init: function() { @@ -46,7 +49,7 @@ Ext.define('Traccar.controller.Root', { if (success) { this.loadApp(); } else { - this.login = Ext.create('Traccar.view.login.Login', { + this.login = Ext.create('widget.login', { listeners: { scope: this, login: 'onLogin' @@ -65,9 +68,9 @@ Ext.define('Traccar.controller.Root', { Ext.getStore('Devices').load(); Ext.getBody().empty(); if (this.isPhone) { - Ext.create('Traccar.view.MainMobile'); + Ext.create('widget.mainMobile'); } else { - Ext.create('Traccar.view.Main'); + Ext.create('widget.main'); } } }); |