diff --git a/src/modules/timesheets/components/shift-list-day.vue b/src/modules/timesheets/components/shift-list-day.vue index 6908a9e..583e70b 100644 --- a/src/modules/timesheets/components/shift-list-day.vue +++ b/src/modules/timesheets/components/shift-list-day.vue @@ -15,7 +15,7 @@ // ================== State ================== - const { day, dense = false, approved = false, holiday = false } = defineProps<{ + const { timesheetId, weekDayIndex, day, dense = false, approved = false, holiday = false } = defineProps<{ timesheetId: number; weekDayIndex: number; day: TimesheetDay; @@ -59,6 +59,10 @@ else shift_error_message.value = undefined; } + + const onClickApplyDailyPreset = async () => { + await timesheet_api.applyPreset(timesheetId, weekDayIndex, day.date, employeeEmail); + }