aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/device/DeviceController.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/device/DeviceController.js')
-rw-r--r--web/app/view/device/DeviceController.js5
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() {