fix duration formatting over 24h, fix time entry create modal clearing after submit

This commit is contained in:
Gregor Vostrak
2024-04-25 15:36:16 +02:00
parent 1f6d9c598d
commit 66210e7830
2 changed files with 6 additions and 3 deletions

View File

@@ -30,12 +30,12 @@ const timeEntryDefaultValues = {
user_id: getCurrentUserId(),
};
const timeEntry = ref(timeEntryDefaultValues);
const timeEntry = ref({ ...timeEntryDefaultValues });
async function submit() {
await createTimeEntry(timeEntry.value);
timeEntry.value = { ...timeEntryDefaultValues };
show.value = false;
timeEntry.value = timeEntryDefaultValues;
}
const projectNameInput = ref<HTMLInputElement | null>(null);