diff options
author | Abyss777 <abyss@fox5.ru> | 2016-06-20 11:05:15 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-06-20 11:05:15 +0500 |
commit | f82970ac21ec2f050a09493fa7bc46c7178b57c3 (patch) | |
tree | 91153bf6a9daacb97f6cd18912361543db000fc0 /web/app/view/UsersController.js | |
parent | 66a21745d90fe1068f3415e705dff3736c19eaaa (diff) | |
download | trackermap-server-f82970ac21ec2f050a09493fa7bc46c7178b57c3.tar.gz trackermap-server-f82970ac21ec2f050a09493fa7bc46c7178b57c3.tar.bz2 trackermap-server-f82970ac21ec2f050a09493fa7bc46c7178b57c3.zip |
- Merged 5 Link/Unlink controllers to one
- Other style fixes
Diffstat (limited to 'web/app/view/UsersController.js')
-rw-r--r-- | web/app/view/UsersController.js | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/web/app/view/UsersController.js b/web/app/view/UsersController.js index acf718c82..acba66b4d 100644 --- a/web/app/view/UsersController.js +++ b/web/app/view/UsersController.js @@ -72,7 +72,12 @@ Ext.define('Traccar.view.UsersController', { title: Strings.deviceTitle, items: { xtype: 'userDevicesView', - user: user + baseObjectName: 'userId', + linkObjectName: 'deviceId', + storeName: 'AllDevices', + linkStoreName: 'Devices', + urlApi: '/api/permissions/devices', + baseObject: user.getData().id } }).show(); }, @@ -83,7 +88,12 @@ Ext.define('Traccar.view.UsersController', { title: Strings.settingsGroups, items: { xtype: 'userGroupsView', - user: user + baseObjectName: 'userId', + linkObjectName: 'groupId', + storeName: 'AllGroups', + linkStoreName: 'Groups', + urlApi: '/api/permissions/groups', + baseObject: user.getData().id } }).show(); }, @@ -91,10 +101,15 @@ Ext.define('Traccar.view.UsersController', { onGeofencesClick: function () { var user = this.getView().getSelectionModel().getSelection()[0]; Ext.create('Traccar.view.BaseWindow', { - title: Strings.settingsGeofences, + title: Strings.sharedGeofences, items: { xtype: 'userGeofencesView', - user: user + baseObjectName: 'userId', + linkObjectName: 'geofenceId', + storeName: 'AllGeofences', + linkStoreName: 'Geofences', + urlApi: '/api/permissions/geofences', + baseObject: user.getData().id } }).show(); }, |