From 48631f90b2e4718bf7c2ab8312424647b63f4925 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Wed, 1 Nov 2017 08:40:58 +0500 Subject: Add attribute to hide Events panel --- web/app/view/map/MapController.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'web/app/view/map/MapController.js') diff --git a/web/app/view/map/MapController.js b/web/app/view/map/MapController.js index 75796f9b..38b2340c 100644 --- a/web/app/view/map/MapController.js +++ b/web/app/view/map/MapController.js @@ -46,7 +46,8 @@ Ext.define('Traccar.view.map.MapController', { this.callParent(); this.lookupReference('showReportsButton').setVisible( Traccar.app.isMobile() && !Traccar.app.getBooleanAttributePreference('ui.disableReport')); - this.lookupReference('showEventsButton').setVisible(Traccar.app.isMobile()); + this.lookupReference('showEventsButton').setVisible( + Traccar.app.isMobile() && !Traccar.app.getBooleanAttributePreference('ui.disableEvents')); }, showReports: function () { -- cgit v1.2.3