From 9f7b998c50b304205858973fe542b49b0e705be5 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Tue, 1 Aug 2017 11:57:54 +0500 Subject: Implemented attribute to disable reports --- web/app/view/map/MapController.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'web/app/view/map') 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()); }, -- cgit v1.2.3