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
|
let location = state.mapProperties.location
|
||||||
export let onlyLink: boolean
|
export let onlyLink: boolean
|
||||||
const t = Translations.t.general.menu
|
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 => {
|
state.guistate.pageStates.menu.addCallback(isShown => {
|
||||||
console.log("Setting", isShown)
|
if(!onlyLink){
|
||||||
|
return true
|
||||||
|
}
|
||||||
if(isShown){
|
if(isShown){
|
||||||
shown.setData(true)
|
shown.setData(true)
|
||||||
}else{
|
}else{
|
||||||
|
|
Loading…
Reference in a new issue