aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/DeviceController.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-04 19:22:55 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-04 19:22:55 +1300
commit84bc395ee2c22b596c30fae4054b72906e52d6b0 (patch)
treed8f31def0381c1345572ce63f5651d69cc1ba7d4 /web/app/view/DeviceController.js
parent80c3aaf2af10c8d94b18f01a0a3d825437a5596d (diff)
downloadtrackermap-server-84bc395ee2c22b596c30fae4054b72906e52d6b0.tar.gz
trackermap-server-84bc395ee2c22b596c30fae4054b72906e52d6b0.tar.bz2
trackermap-server-84bc395ee2c22b596c30fae4054b72906e52d6b0.zip
Move settings into separate class
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();