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

View file

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