Skip to content

Commit

Permalink
Dont open panel if its disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
raitisbe committed Mar 15, 2019
1 parent 5b2805e commit 0837909
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/core/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ define(['angular', 'angular-gettext', 'translations', 'ol', 'map', 'drag', 'api'
* @description Sets new main panel (Panel displayed in expanded sidebar). Change GUI and queryable status of map (when queryable and with hs.query component in app, map does info query on map click).
*/
setMainPanel: function (which, by_gui, queryable) {
if(!me.panelEnabled(which)) return;
if (which == me.mainpanel && by_gui) {
which = "";
if (me.sidebarExpanded == true) {
Expand Down

0 comments on commit 0837909

Please sign in to comment.