aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/map
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-08-11 15:03:39 +0500
committerAbyss777 <abyss@fox5.ru>2017-08-11 17:22:15 +0500
commita2b7e07df1cc4548e27c51e1545cf210b0ef0ab7 (patch)
tree61f7ef413962fee8b2c20fafc29ef3e872273ad3 /web/app/view/map
parent9a536a3ef3b8972c64de2de76a340115ab036d3f (diff)
downloadetbsa-traccar-web-a2b7e07df1cc4548e27c51e1545cf210b0ef0ab7.tar.gz
etbsa-traccar-web-a2b7e07df1cc4548e27c51e1545cf210b0ef0ab7.tar.bz2
etbsa-traccar-web-a2b7e07df1cc4548e27c51e1545cf210b0ef0ab7.zip
Implement attribute to disable vehicle related UI features
Diffstat (limited to 'web/app/view/map')
-rw-r--r--web/app/view/map/MapController.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app/view/map/MapController.js b/web/app/view/map/MapController.js
index f2a561a..651bd9f 100644
--- a/web/app/view/map/MapController.js
+++ b/web/app/view/map/MapController.js
@@ -45,7 +45,7 @@ Ext.define('Traccar.view.map.MapController', {
init: function () {
this.callParent();
this.lookupReference('showReportsButton').setVisible(Traccar.app.isMobile() &&
- !Traccar.app.getAttributePreference('ui.disableReport', false));
+ !Traccar.app.getBooleanAttributePreference('ui.disableReport'));
this.lookupReference('showEventsButton').setVisible(Traccar.app.isMobile());
},