mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-15 11:42:15 +01:00
fix billable default when starting time entry from recently tracked tasks
This commit is contained in:
@@ -29,6 +29,7 @@ async function startTaskTimer() {
|
|||||||
currentTimeEntry.value.project_id = props.project_id;
|
currentTimeEntry.value.project_id = props.project_id;
|
||||||
currentTimeEntry.value.task_id = props.task_id;
|
currentTimeEntry.value.task_id = props.task_id;
|
||||||
currentTimeEntry.value.start = getDayJsInstance().utc().format();
|
currentTimeEntry.value.start = getDayJsInstance().utc().format();
|
||||||
|
currentTimeEntry.value.billable = project.value?.is_billable ?? false;
|
||||||
await setActiveState(true);
|
await setActiveState(true);
|
||||||
useCurrentTimeEntryStore().fetchCurrentTimeEntry();
|
useCurrentTimeEntryStore().fetchCurrentTimeEntry();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user