diff options
author | Abyss777 <abyss@fox5.ru> | 2016-06-23 16:17:25 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-06-23 16:17:25 +0500 |
commit | bd2e0fdc6fe222316e9e740aa265b6d132d407b6 (patch) | |
tree | 0e146fde0b2a7556c380a4b715cb88e42b97d8cb /web/app/view/DevicesController.js | |
parent | a445733519b4b38b52b03fbb63a55c7270cb9221 (diff) | |
download | trackermap-server-bd2e0fdc6fe222316e9e740aa265b6d132d407b6.tar.gz trackermap-server-bd2e0fdc6fe222316e9e740aa265b6d132d407b6.tar.bz2 trackermap-server-bd2e0fdc6fe222316e9e740aa265b6d132d407b6.zip |
Added possibility to disable event and geofence subsystems
Diffstat (limited to 'web/app/view/DevicesController.js')
-rw-r--r-- | web/app/view/DevicesController.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app/view/DevicesController.js b/web/app/view/DevicesController.js index cf31dd7bb..8b35fd859 100644 --- a/web/app/view/DevicesController.js +++ b/web/app/view/DevicesController.js @@ -125,7 +125,7 @@ Ext.define('Traccar.view.DevicesController', { var empty = selected.getCount() === 0; this.lookupReference('toolbarEditButton').setDisabled(empty); this.lookupReference('toolbarRemoveButton').setDisabled(empty); - this.lookupReference('toolbarGeofencesButton').setDisabled(empty); + this.lookupReference('toolbarGeofencesButton').setDisabled(empty || Traccar.app.withoutGeofences); this.lookupReference('deviceCommandButton').setDisabled(empty || (selected.getLastSelected().get('status') !== 'online')); if (!empty) { this.fireEvent('selectDevice', selected.getLastSelected(), true); |