diff --git a/src/UI/Popup/TagRendering/Questionbox.svelte b/src/UI/Popup/TagRendering/Questionbox.svelte index 002e13c88..d6936ada8 100644 --- a/src/UI/Popup/TagRendering/Questionbox.svelte +++ b/src/UI/Popup/TagRendering/Questionbox.svelte @@ -53,7 +53,7 @@ * Ids of skipped questions */ let skippedQuestions = new UIEventSource>(new Set()) - let layerDisabledForTheme = state.userRelatedState.getThemeDisabled(state.layout.id, layer.id) + let layerDisabledForTheme = state.userRelatedState.getThemeDisabled(state.theme.id, layer.id) layerDisabledForTheme.addCallbackAndRunD(disabled => { skippedQuestions.set(new Set(disabled.concat(Array.from(skippedQuestions.data)))) }) diff --git a/src/UI/Popup/TagRendering/TagRenderingQuestion.svelte b/src/UI/Popup/TagRendering/TagRenderingQuestion.svelte index 15a32b7ae..c98befff0 100644 --- a/src/UI/Popup/TagRendering/TagRenderingQuestion.svelte +++ b/src/UI/Popup/TagRendering/TagRenderingQuestion.svelte @@ -93,7 +93,7 @@ return !m.hideInAnswer.matchesProperties(tgs) }) selectedMapping = mappings?.findIndex( - (mapping) => mapping.if.matchesProperties(tgs) || mapping.alsoShowIf?.matchesProperties(tgs) + (mapping) => mapping.if.matchesProperties(tgs) || mapping.alsoShowIf?.matchesProperties(tgs), ) if (selectedMapping < 0) { selectedMapping = undefined @@ -201,7 +201,7 @@ if (freeformValue?.length > 0) { selectedMapping = config.mappings.length } - }) + }), ) $: { @@ -219,7 +219,7 @@ $freeformInput, selectedMapping, checkedMappings, - tags.data + tags.data, ) if (featureSwitchIsDebugging?.data) { console.log( @@ -231,7 +231,7 @@ currentTags: tags.data, }, " --> ", - selectedTags + selectedTags, ) } } catch (e) { @@ -253,7 +253,7 @@ selectedTags = new And([...selectedTags.and, ...extraTagsArray]) } else { console.error( - "selectedTags is not of type Tag or And, it is a " + JSON.stringify(selectedTags) + "selectedTags is not of type Tag or And, it is a " + JSON.stringify(selectedTags), ) } } @@ -322,7 +322,7 @@ onDestroy( state.osmConnection?.userDetails?.addCallbackAndRun((ud) => { numberOfCs = ud.csCount - }) + }), ) } @@ -341,7 +341,7 @@ .catch(console.error) } - let disabledInTheme = state.userRelatedState.getThemeDisabled(state.layout.id, layer?.id) + let disabledInTheme = state.userRelatedState.getThemeDisabled(state.theme.id, layer?.id) let menuIsOpened = new UIEventSource(false) function disableQuestion() { @@ -361,20 +361,22 @@
{#if layer.isNormal()} - - - {#if $disabledInTheme.indexOf(config.id) >= 0} - - {:else} - - {/if} - - - {/if} + + + + {#if $disabledInTheme.indexOf(config.id) >= 0} + + {:else} + + {/if} + + + + {/if}