forked from MapComplete/MapComplete
Fix: fix #2281
This commit is contained in:
parent
55741d7043
commit
8ef7af613f
1 changed files with 4 additions and 2 deletions
|
@ -64,9 +64,11 @@
|
|||
let location = state.mapProperties.location
|
||||
export let onlyLink: boolean
|
||||
const t = Translations.t.general.menu
|
||||
let shown = new UIEventSource(state.guistate.pageStates.menu.data)
|
||||
let shown = new UIEventSource(state.guistate.pageStates.menu.data || !onlyLink)
|
||||
state.guistate.pageStates.menu.addCallback(isShown => {
|
||||
console.log("Setting", isShown)
|
||||
if(!onlyLink){
|
||||
return true
|
||||
}
|
||||
if(isShown){
|
||||
shown.setData(true)
|
||||
}else{
|
||||
|
|
Loading…
Reference in a new issue