From eaa0044002aeaff0b5df11f8463a068a6ff2284d Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 6 Jun 2015 23:18:49 +1200 Subject: Add user management window --- web/app/view/device/DeviceController.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'web/app/view/device/DeviceController.js') diff --git a/web/app/view/device/DeviceController.js b/web/app/view/device/DeviceController.js index 451b6bbf3..f45f348b6 100644 --- a/web/app/view/device/DeviceController.js +++ b/web/app/view/device/DeviceController.js @@ -21,12 +21,14 @@ Ext.define('Traccar.view.device.DeviceController', { requires: [ 'Traccar.view.device.DeviceDialog', 'Traccar.view.user.UserDialog', - 'Traccar.view.admin.ServerDialog' + 'Traccar.view.admin.ServerDialog', + 'Traccar.view.user.User' ], init: function() { if (Traccar.getApplication().getUser().get('admin')) { this.lookupReference('settingsServerButton').setDisabled(false); + this.lookupReference('settingsUsersButton').setDisabled(false); } }, @@ -86,6 +88,19 @@ Ext.define('Traccar.view.device.DeviceController', { var dialog = Ext.create('Traccar.view.admin.ServerDialog'); dialog.down('form').loadRecord(server); dialog.show(); + }, + + onUsersClick: function() { + Ext.create('Ext.window.Window', { + title: strings.login_users_title, + width: styles.window_width, + height: styles.window_height, + layout: 'fit', + modal: true, + items: { + xtype: 'user-view' + } + }).show(); } }); -- cgit v1.2.3