diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-03-09 22:03:30 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-03-09 22:03:30 +1300 |
commit | 71c5871dc0221d7a82851f2c3ca3cd2b594982f2 (patch) | |
tree | 4bd874a7be91a346b162c3e08f9c3b7499896bf9 /web/app/view/UsersController.js | |
parent | c22cc6982a18eb3601fdc8fb8447b5a2ba73690a (diff) | |
download | trackermap-server-71c5871dc0221d7a82851f2c3ca3cd2b594982f2.tar.gz trackermap-server-71c5871dc0221d7a82851f2c3ca3cd2b594982f2.tar.bz2 trackermap-server-71c5871dc0221d7a82851f2c3ca3cd2b594982f2.zip |
Add window to link users and groups
Diffstat (limited to 'web/app/view/UsersController.js')
-rw-r--r-- | web/app/view/UsersController.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/web/app/view/UsersController.js b/web/app/view/UsersController.js index 3d0e813e8..6e8921026 100644 --- a/web/app/view/UsersController.js +++ b/web/app/view/UsersController.js @@ -75,10 +75,22 @@ Ext.define('Traccar.view.UsersController', { }).show(); }, + onGroupsClick: function () { + var user = this.getView().getSelectionModel().getSelection()[0]; + Ext.create('Traccar.view.BaseWindow', { + title: Strings.settingsGroups, + items: { + xtype: 'userDevicesView', + user: user + } + }).show(); + }, + onSelectionChange: function (selected) { var disabled = selected.length > 0; this.lookupReference('toolbarEditButton').setDisabled(disabled); this.lookupReference('toolbarRemoveButton').setDisabled(disabled); this.lookupReference('userDevicesButton').setDisabled(disabled); + this.lookupReference('userGroupsButton').setDisabled(disabled); } }); |