aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/MainController.js
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/MainController.js
parent9a536a3ef3b8972c64de2de76a340115ab036d3f (diff)
downloadtrackermap-web-a2b7e07df1cc4548e27c51e1545cf210b0ef0ab7.tar.gz
trackermap-web-a2b7e07df1cc4548e27c51e1545cf210b0ef0ab7.tar.bz2
trackermap-web-a2b7e07df1cc4548e27c51e1545cf210b0ef0ab7.zip
Implement attribute to disable vehicle related UI features
Diffstat (limited to 'web/app/view/MainController.js')
-rw-r--r--web/app/view/MainController.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/web/app/view/MainController.js b/web/app/view/MainController.js
index 76645e43..126d9af5 100644
--- a/web/app/view/MainController.js
+++ b/web/app/view/MainController.js
@@ -20,7 +20,6 @@ Ext.define('Traccar.view.MainController', {
alias: 'controller.mainController',
init: function () {
- this.lookupReference('reportView').setHidden(
- Traccar.app.getAttributePreference('ui.disableReport', false).toString() === 'true');
+ this.lookupReference('reportView').setHidden(Traccar.app.getBooleanAttributePreference('ui.disableReport'));
}
});