diff options
author | Abyss777 <abyss@fox5.ru> | 2017-11-01 08:40:58 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-11-01 08:40:58 +0500 |
commit | 48631f90b2e4718bf7c2ab8312424647b63f4925 (patch) | |
tree | d9c80566060b7f61cd6acc683dac8efd7f3109e8 /web/app/view | |
parent | 2fd7c0f03ec9a4a3734a0aba38d56f59fddc6e48 (diff) | |
download | etbsa-traccar-web-48631f90b2e4718bf7c2ab8312424647b63f4925.tar.gz etbsa-traccar-web-48631f90b2e4718bf7c2ab8312424647b63f4925.tar.bz2 etbsa-traccar-web-48631f90b2e4718bf7c2ab8312424647b63f4925.zip |
Add attribute to hide Events panel
Diffstat (limited to 'web/app/view')
-rw-r--r-- | web/app/view/Main.js | 1 | ||||
-rw-r--r-- | web/app/view/MainController.js | 1 | ||||
-rw-r--r-- | web/app/view/map/MapController.js | 3 |
3 files changed, 4 insertions, 1 deletions
diff --git a/web/app/view/Main.js b/web/app/view/Main.js index 2d251a5..0504245 100644 --- a/web/app/view/Main.js +++ b/web/app/view/Main.js @@ -75,6 +75,7 @@ Ext.define('Traccar.view.Main', { }, { region: 'east', xtype: 'eventsView', + reference: 'eventsView', width: Traccar.Style.deviceWidth, collapsed: true, titleCollapse: true, diff --git a/web/app/view/MainController.js b/web/app/view/MainController.js index 126d9af..7cd0305 100644 --- a/web/app/view/MainController.js +++ b/web/app/view/MainController.js @@ -21,5 +21,6 @@ Ext.define('Traccar.view.MainController', { init: function () { this.lookupReference('reportView').setHidden(Traccar.app.getBooleanAttributePreference('ui.disableReport')); + this.lookupReference('eventsView').setHidden(Traccar.app.getBooleanAttributePreference('ui.disableEvents')); } }); diff --git a/web/app/view/map/MapController.js b/web/app/view/map/MapController.js index 75796f9..38b2340 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 () { |