Show config ID if in debug mode

This commit is contained in:
Pieter Vander Vennet 2024-05-27 01:31:29 +02:00
parent 84db64bddf
commit 386ab7d79d

View file

@ -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