diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-09-17 16:57:31 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-09-17 16:57:31 +1200 |
commit | 8baf73493d24c85bc5d13069044fc1150ed62c2e (patch) | |
tree | ce421f9431ac3e13e91817bfd989bcd272034649 /web/app/view/device | |
parent | 4154c2cd31f23c5d5fb336dfcd68ba192b297f93 (diff) | |
download | trackermap-server-8baf73493d24c85bc5d13069044fc1150ed62c2e.tar.gz trackermap-server-8baf73493d24c85bc5d13069044fc1150ed62c2e.tar.bz2 trackermap-server-8baf73493d24c85bc5d13069044fc1150ed62c2e.zip |
Move login calls to controller
Diffstat (limited to 'web/app/view/device')
-rw-r--r-- | web/app/view/device/DeviceController.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/web/app/view/device/DeviceController.js b/web/app/view/device/DeviceController.js index 59b777f8b..3cfe3888d 100644 --- a/web/app/view/device/DeviceController.js +++ b/web/app/view/device/DeviceController.js @@ -23,7 +23,8 @@ Ext.define('Traccar.view.device.DeviceController', { 'Traccar.view.command.CommandDialog', 'Traccar.view.user.UserDialog', 'Traccar.view.admin.ServerDialog', - 'Traccar.view.user.User' + 'Traccar.view.user.User', + 'Traccar.view.login.LoginController' ], config: { @@ -44,7 +45,7 @@ Ext.define('Traccar.view.device.DeviceController', { }, onLogoutClick: function() { - Traccar.LoginManager.logout(); + Ext.create('Traccar.view.login.LoginController').logout(); }, onAddClick: function() { |