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()))
|
||||
}
|
||||
let answerId = "answer-" + Utils.randomString(5)
|
||||
let debug = state.featureSwitches.featureSwitchIsDebugging
|
||||
</script>
|
||||
|
||||
<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 editMode}
|
||||
<TagRenderingQuestion
|
||||
|
|
Loading…
Reference in a new issue