forked from MapComplete/MapComplete
Show config ID if in debug mode
This commit is contained in:
parent
84db64bddf
commit
386ab7d79d
1 changed files with 6 additions and 0 deletions
|
@ -74,9 +74,15 @@
|
||||||
onDestroy(_htmlElement.addCallbackAndRun(() => setHighlighting()))
|
onDestroy(_htmlElement.addCallbackAndRun(() => setHighlighting()))
|
||||||
}
|
}
|
||||||
let answerId = "answer-" + Utils.randomString(5)
|
let answerId = "answer-" + Utils.randomString(5)
|
||||||
|
let debug = state.featureSwitches.featureSwitchIsDebugging
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div bind:this={htmlElem} class={twMerge(clss, "tr-" + config.id)}>
|
<div bind:this={htmlElem} class={twMerge(clss, "tr-" + config.id)}>
|
||||||
|
{#if $debug}
|
||||||
|
<span class="subtle">
|
||||||
|
{config.id}
|
||||||
|
</span>
|
||||||
|
{/if}
|
||||||
{#if config.question && (!editingEnabled || $editingEnabled)}
|
{#if config.question && (!editingEnabled || $editingEnabled)}
|
||||||
{#if editMode}
|
{#if editMode}
|
||||||
<TagRenderingQuestion
|
<TagRenderingQuestion
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue