diff options
author | Abyss777 <abyss@fox5.ru> | 2016-06-18 07:59:43 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-06-18 07:59:43 +0500 |
commit | 4109447d0adc778b246543b77672c280d58da8bf (patch) | |
tree | 08ee98636cec128587bbf5f25654c5e3534dfcd9 /web/app/view/UsersController.js | |
parent | b3b0cd9d6f2d26cef2e64ef38e23203f1f3fa51a (diff) | |
download | trackermap-server-4109447d0adc778b246543b77672c280d58da8bf.tar.gz trackermap-server-4109447d0adc778b246543b77672c280d58da8bf.tar.bz2 trackermap-server-4109447d0adc778b246543b77672c280d58da8bf.zip |
- Update Geofences API and Manager a bit
- Show geofence name in event toasts
- Link/Unlink geofences to users, devices and groups
Diffstat (limited to 'web/app/view/UsersController.js')
-rw-r--r-- | web/app/view/UsersController.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/web/app/view/UsersController.js b/web/app/view/UsersController.js index c48f57cf4..acf718c82 100644 --- a/web/app/view/UsersController.js +++ b/web/app/view/UsersController.js @@ -22,6 +22,7 @@ Ext.define('Traccar.view.UsersController', { 'Traccar.view.UserDialog', 'Traccar.view.UserDevices', 'Traccar.view.UserGroups', + 'Traccar.view.UserGeofences', 'Traccar.view.BaseWindow' ], @@ -87,11 +88,23 @@ Ext.define('Traccar.view.UsersController', { }).show(); }, + onGeofencesClick: function () { + var user = this.getView().getSelectionModel().getSelection()[0]; + Ext.create('Traccar.view.BaseWindow', { + title: Strings.settingsGeofences, + items: { + xtype: 'userGeofencesView', + 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); + this.lookupReference('userGeofencesButton').setDisabled(disabled); } }); |