aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/DeviceController.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/DeviceController.js')
-rw-r--r--web/app/view/DeviceController.js39
1 files changed, 1 insertions, 38 deletions
diff --git a/web/app/view/DeviceController.js b/web/app/view/DeviceController.js
index c3d1d4787..a7e90da40 100644
--- a/web/app/view/DeviceController.js
+++ b/web/app/view/DeviceController.js
@@ -22,8 +22,7 @@ Ext.define('Traccar.view.DeviceController', {
'Traccar.view.CommandDialog',
'Traccar.view.DeviceDialog',
'Traccar.view.UserDialog',
- 'Traccar.view.User',
- 'Traccar.view.LoginController'
+ 'Traccar.view.User'
],
config: {
@@ -36,17 +35,6 @@ Ext.define('Traccar.view.DeviceController', {
}
},
- init: function () {
- if (Traccar.app.getUser().get('admin')) {
- this.lookupReference('settingsServerButton').setHidden(false);
- this.lookupReference('settingsUsersButton').setHidden(false);
- }
- },
-
- onLogoutClick: function () {
- Ext.create('Traccar.view.LoginController').logout();
- },
-
onAddClick: function () {
var device, dialog;
device = Ext.create('Traccar.model.Device');
@@ -105,31 +93,6 @@ Ext.define('Traccar.view.DeviceController', {
}
},
- onUserClick: function () {
- var dialog = Ext.create('Traccar.view.UserDialog');
- dialog.down('form').loadRecord(Traccar.app.getUser());
- dialog.show();
- },
-
- onServerClick: function () {
- var dialog = Ext.create('Traccar.view.ServerDialog');
- dialog.down('form').loadRecord(Traccar.app.getServer());
- dialog.show();
- },
-
- onUsersClick: function () {
- Ext.create('Ext.window.Window', {
- title: Strings.settingsUsers,
- width: Traccar.Style.windowWidth,
- height: Traccar.Style.windowHeight,
- layout: 'fit',
- modal: true,
- items: {
- xtype: 'userView'
- }
- }).show();
- },
-
selectReport: function (position) {
if (position !== undefined) {
this.getView().getSelectionModel().deselectAll();