accept string and date in toLocalDate() util

This commit is contained in:
2025-11-10 16:09:53 +01:00
parent 2b974fafb5
commit 26cb144151
7 changed files with 220 additions and 15 deletions
@@ -205,7 +205,7 @@ const cancelChanges = (event: Event | null) => {
isOpen.value = false
},
onCancel: () => {
if(!event) return
if (!event) return
event.preventDefault()
event.returnValue = true
}
@@ -293,7 +293,10 @@ const updateTotalAmount = () => {
@escapeKeyDown="cancelChanges" @interactOutside="cancelChanges">
<DialogHeader class="px-3 pt-3 flex flex-row justify-end">
<DialogTitle class="sr-only">Rechnung</DialogTitle>
<DialogTitle class="sr-only">Rechnung {{ invoice?.nr }}</DialogTitle>
<DialogDescription>
{{ invoice?.title }}
</DialogDescription>
<div v-if="invoice && invoice.id > 0" class="hidden md:flex mr-4">
<Button :size="'sm'" :variant="'ghost'" @click="preview">