From d3ca7de349f1d8ab0d02bf783a2c7627af44c6fd Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 15 Oct 2015 15:12:46 +1300 Subject: Change user devices window --- web/app/view/UsersController.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'web/app/view/UsersController.js') diff --git a/web/app/view/UsersController.js b/web/app/view/UsersController.js index c8fd137ed..cfcf17fe1 100644 --- a/web/app/view/UsersController.js +++ b/web/app/view/UsersController.js @@ -19,7 +19,9 @@ Ext.define('Traccar.view.UsersController', { alias: 'controller.users', requires: [ - 'Traccar.view.UserDialog' + 'Traccar.view.UserDialog', + 'Traccar.view.UserDevices', + 'Traccar.view.BaseWindow' ], init: function () { @@ -63,8 +65,12 @@ Ext.define('Traccar.view.UsersController', { }, onDevicesClick: function () { - //var dialog = Ext.create('Traccar.view.UserDeviceDialog'); - //dialog.show(); + Ext.create('Traccar.view.BaseWindow', { + title: Strings.deviceTitle, + items: { + xtype: 'userDevicesView' + } + }).show(); }, onSelectionChange: function (selected) { -- cgit v1.2.3