#2-protocol #6

Merged
jkeffects merged 15 commits from #2-protocol into main 2024-10-29 14:43:29 +00:00
Showing only changes of commit ea7f6e5ec2 - Show all commits

View file

@ -4,7 +4,7 @@
<p class="text-xl font-medium">Protokoll erstellen</p> <p class="text-xl font-medium">Protokoll erstellen</p>
</div> </div>
<br /> <br />
<form class="flex flex-col gap-4 py-2" @submit.prevent="triggerCreate"> <form ref="form" class="flex flex-col gap-4 py-2" @submit.prevent="triggerCreate">
<div> <div>
<label for="title">Titel</label> <label for="title">Titel</label>
<input type="text" id="title" required autocomplete="false" /> <input type="text" id="title" required autocomplete="false" />
@ -68,6 +68,7 @@ export default defineComponent({
.then(() => { .then(() => {
this.status = { status: "success" }; this.status = { status: "success" };
this.timeout = setTimeout(() => { this.timeout = setTimeout(() => {
(this.$refs.form as HTMLFormElement).reset();
this.closeModal(); this.closeModal();
}, 1500); }, 1500);
}) })