diff options
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()); }, |