DTL panel : show proposal corresponding to dialog working for virtual sample (dynamic and static)

This commit is contained in:
isUnknown 2025-01-27 11:06:06 +01:00
parent af0c259525
commit c2d00e0edf
5 changed files with 204 additions and 92 deletions

View file

@ -11,7 +11,7 @@
<DTLPanel v-if="isDTLPanelOpen" @close="isDTLPanelOpen = false" />
<DTLButton
v-if="page?.designToLight?.length > 0"
@click="openDTLPanel($event)"
@click="toggleDTLPanel($event)"
/>
</main>
</template>
@ -61,8 +61,8 @@ function openDialog(targetStepSlug) {
dialog.content = targetStep;
}
function openDTLPanel(event) {
isDTLPanelOpen.value = true;
function toggleDTLPanel(event) {
isDTLPanelOpen.value = !isDTLPanelOpen.value;
event.stopImmediatePropagation();
}
</script>