From 8460acbc69ab19f35fd5079ab615ea11a6a09675 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 3 Oct 2015 12:04:24 +1300 Subject: Move device panel class --- web/app/controller/Root.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'web/app/controller') 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'); } } }); -- cgit v1.2.3