Files
dttmr-fe/src/components/DeleteListModal.vue
T
2026-09-04 10:35:06 +02:00

32 lines
679 B
Vue

<script setup lang="ts">
import type { LocalList } from '@/database/db'
import ConfirmDeleteModal from '@/components/ConfirmDeleteModal.vue'
const props = defineProps<{
list: LocalList
}>()
const emit = defineEmits<{
close: []
confirm: []
}>()
function handleClose() {
emit('close')
}
function handleConfirm() {
emit('confirm')
}
</script>
<template>
<ConfirmDeleteModal
:title="`Delete &quot;${props.list.name}&quot;?`"
description="Are you sure you want to delete this list? This action cannot be undone and all items in this list will be deleted."
confirm-label="Delete list"
@close="handleClose"
@confirm="handleConfirm"
/>
</template>