diff options
author | Abyss777 <abyss@fox5.ru> | 2017-08-01 11:57:54 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-08-01 11:57:54 +0500 |
commit | 9f7b998c50b304205858973fe542b49b0e705be5 (patch) | |
tree | 8ef8f08fb184ebb52bc1c42e2d5dc5f7dd624de0 /web/app/view | |
parent | 3f4190a60c119f55822b218cc54fff22ff3c2ac5 (diff) | |
download | trackermap-web-9f7b998c50b304205858973fe542b49b0e705be5.tar.gz trackermap-web-9f7b998c50b304205858973fe542b49b0e705be5.tar.bz2 trackermap-web-9f7b998c50b304205858973fe542b49b0e705be5.zip |
Implemented attribute to disable reports
Diffstat (limited to 'web/app/view')
-rw-r--r-- | web/app/view/map/MapController.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web/app/view/map/MapController.js b/web/app/view/map/MapController.js index 02d4e382..39cf5101 100644 --- a/web/app/view/map/MapController.js +++ b/web/app/view/map/MapController.js @@ -44,7 +44,8 @@ Ext.define('Traccar.view.map.MapController', { init: function () { this.callParent(); - this.lookupReference('showReportsButton').setVisible(Traccar.app.isMobile()); + this.lookupReference('showReportsButton').setVisible(Traccar.app.isMobile() && + !Traccar.app.getAttributePreference('web.disableReport', false)); this.lookupReference('showEventsButton').setVisible(Traccar.app.isMobile()); }, |