web: fix clearing dates not actually clearing

This commit is contained in:
Sphereso 2024-07-12 02:07:49 +02:00
parent b2053773e9
commit db4d249667
2 changed files with 5 additions and 0 deletions

View file

@ -119,6 +119,7 @@
clearable
v-model="addStartDate"
hide-details
@click:clear="addStartDate = undefined"
></v-date-input>
</div>
<div class="mb-6">
@ -130,6 +131,7 @@
clearable
v-model="addStopDate"
hide-details
@click:clear="addStopDate = undefined"
></v-date-input>
</div>
</div>

View file

@ -52,6 +52,7 @@
clearable
v-model="editStartDate"
hide-details
@click:clear="editStartDate = null"
></v-date-input>
</div>
<div class="mb-6">
@ -63,6 +64,7 @@
clearable
v-model="editStopDate"
hide-details
@click:clear="editStopDate = null"
></v-date-input>
</div>
</div>
@ -147,6 +149,7 @@ const editNameRules = [
];
async function submitEdit(event: SubmitEventPromise) {
console.log(editStartDate.value)
const result = await event;
if (result.valid) {
const editData = {