aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/UsersController.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-03-09 22:03:30 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2016-03-09 22:03:30 +1300
commit71c5871dc0221d7a82851f2c3ca3cd2b594982f2 (patch)
tree4bd874a7be91a346b162c3e08f9c3b7499896bf9 /web/app/view/UsersController.js
parentc22cc6982a18eb3601fdc8fb8447b5a2ba73690a (diff)
downloadtrackermap-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.js12
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);
}
});