feat(frontend): Add DeleteModal

This commit is contained in:
2025-03-16 08:11:09 +01:00
parent 66dabc329d
commit 6f86208f92
7 changed files with 114 additions and 34 deletions

View File

@@ -19,7 +19,7 @@
</template>
<template #body>
<div class="flex flex-col gap-4 sm:gap-6 lg:gap-12 w-full lg:max-w-2xl mx-auto">
<div class="flex flex-col gap-4 sm:gap-6 lg:gap-12 w-full lg:max-w-4xl mx-auto">
<UPageCard variant="subtle">
<UForm class="space-y-4" :state="{}" @submit="onSubmit">
<FormEngine v-if="applicationForm" v-model="applicationForm.formElements" />
@@ -62,6 +62,7 @@ const applicationForm = computed({
async function onSubmit() {
if (data?.value) {
await updateApplicationForm(data.value.id, data.value)
await navigateTo('/')
}
}
</script>