aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/Main.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/Main.js')
-rw-r--r--web/app/view/Main.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/web/app/view/Main.js b/web/app/view/Main.js
index 3f7cf7c..f656778 100644
--- a/web/app/view/Main.js
+++ b/web/app/view/Main.js
@@ -27,6 +27,19 @@ Ext.define('Traccar.view.Main', {
'Traccar.view.map.Map'
],
+ initComponent: function () {
+ var i;
+ if (Traccar.app.getAttributePreference('ui.disableReport', false).toString() === 'true') {
+ for (i = 0; i < this.items.length; i++) {
+ if (this.items[i].xtype === 'reportView') {
+ this.items[i].hidden = true;
+ break;
+ }
+ }
+ }
+ this.callParent(arguments);
+ },
+
layout: 'border',
defaults: {