Dashboard and error handling

This commit is contained in:
2025-07-15 13:22:11 +02:00
parent 5ac4c987d3
commit 6a5149fd4c
27 changed files with 572 additions and 204 deletions

View File

@ -0,0 +1,22 @@
<template>
<sl-dialog ref="dialogRef" :open="open" @sl-hide="handleHide" :label="label">
<slot />
<div slot="footer">
<slot name="footer" />
</div>
</sl-dialog>
</template>
<script setup lang="ts">
import { ref } from 'vue'
import { useBubbleSafeHandler } from '@/composables/useBubbleSafeHandler'
const props = defineProps<{ label: string; open: boolean }>()
const emit = defineEmits<{ (e: 'hide'): void }>()
const dialogRef = ref<HTMLSlDrawerElement>()
const handleHide = useBubbleSafeHandler(dialogRef, () => {
emit('hide')
})
</script>