+
+
+
+ :initial-state="props.row.is_approved"
+ @click-details="onClickedDetails"
+ />
diff --git a/src/modules/timesheet-approval/composables/use-timesheet-approval-api.ts b/src/modules/timesheet-approval/composables/use-timesheet-approval-api.ts
index 16b8b6d..baf85b8 100644
--- a/src/modules/timesheet-approval/composables/use-timesheet-approval-api.ts
+++ b/src/modules/timesheet-approval/composables/use-timesheet-approval-api.ts
@@ -40,8 +40,13 @@ export const useTimesheetApprovalApi = () => {
}
}
+ const getTimesheetsByPayPeriodAndEmail = async (employee_email: string) => {
+ await timesheet_store.getTimesheetsByPayPeriodAndEmail(employee_email);
+ }
+
return {
getPayPeriodOverviewByDate,
getNextPayPeriodOverview,
+ getTimesheetsByPayPeriodAndEmail
}
};
\ No newline at end of file
diff --git a/src/modules/timesheet-approval/pages/timesheet-approval.vue b/src/modules/timesheet-approval/pages/timesheet-approval.vue
index 8c00a74..2248538 100644
--- a/src/modules/timesheet-approval/pages/timesheet-approval.vue
+++ b/src/modules/timesheet-approval/pages/timesheet-approval.vue
@@ -13,7 +13,6 @@
year: 'numeric',
};
-
const pay_period_label = computed(() => {
const dates = timesheet_store.current_pay_period.label.split('.');
const start_date = new Intl.DateTimeFormat(locale.value, date_options).format(date.extractDate(dates[0] as string, 'YYYY-MM-DD'));
@@ -42,6 +41,7 @@
{{ pay_period_label.end_date }}