From 33783a40ebe4af278bf4f9fa6ca7fa75452c1304 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 7 Nov 2016 06:07:18 +1300 Subject: Add reports to the mobile view --- web/app/view/MapController.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'web/app/view/MapController.js') diff --git a/web/app/view/MapController.js b/web/app/view/MapController.js index 323f29d..32ea6b0 100644 --- a/web/app/view/MapController.js +++ b/web/app/view/MapController.js @@ -67,6 +67,11 @@ Ext.define('Traccar.view.MapController', { this.reportMarkers = {}; this.liveRoutes = {}; this.liveRouteLength = Traccar.app.getAttributePreference('web.liveRouteLength', 10); + this.lookupReference('showReportsButton').setVisible(Traccar.app.isMobile()); + }, + + showReports: function() { + Traccar.app.showReports(true); }, getDeviceColor: function (device) { -- cgit v1.2.3