#2-protocol #6
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue