mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-13 02:32:15 +01:00
fix duration formatting over 24h, fix time entry create modal clearing after submit
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user