fix(timesheet): fix issue where email was incorrectly being sent as param when using timesheet page
This commit is contained in:
parent
80e07bfff2
commit
fec7300092
|
|
@ -6,7 +6,6 @@
|
||||||
import ShiftListScrollable from 'src/modules/timesheets/components/shift-list-scrollable.vue';
|
import ShiftListScrollable from 'src/modules/timesheets/components/shift-list-scrollable.vue';
|
||||||
import LoadingOverlay from 'src/modules/shared/components/loading-overlay.vue';
|
import LoadingOverlay from 'src/modules/shared/components/loading-overlay.vue';
|
||||||
import ExpenseDialog from 'src/modules/timesheets/components/expense-dialog.vue';
|
import ExpenseDialog from 'src/modules/timesheets/components/expense-dialog.vue';
|
||||||
import PageHeaderTemplate from 'src/modules/shared/components/page-header-template.vue';
|
|
||||||
import PayPeriodNavigator from 'src/modules/shared/components/pay-period-navigator.vue';
|
import PayPeriodNavigator from 'src/modules/shared/components/pay-period-navigator.vue';
|
||||||
import TimesheetErrorWidget from 'src/modules/timesheets/components/timesheet-error-widget.vue';
|
import TimesheetErrorWidget from 'src/modules/timesheets/components/timesheet-error-widget.vue';
|
||||||
import ShiftListWeeklyOverview from 'src/modules/timesheets/components/shift-list-weekly-overview.vue';
|
import ShiftListWeeklyOverview from 'src/modules/timesheets/components/shift-list-weekly-overview.vue';
|
||||||
|
|
@ -104,15 +103,7 @@
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<PageHeaderTemplate
|
<q-space />
|
||||||
v-if="mode === 'normal'"
|
|
||||||
:title="'timesheet.page_header'"
|
|
||||||
:start-date="timesheet_store.pay_period?.period_start ?? ''"
|
|
||||||
:end-date="timesheet_store.pay_period?.period_end ?? ''"
|
|
||||||
class="col"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<q-space v-if="!$q.platform.is.mobile && mode === 'approval'" />
|
|
||||||
|
|
||||||
<!-- employee weekly overview -->
|
<!-- employee weekly overview -->
|
||||||
<div
|
<div
|
||||||
|
|
|
||||||
|
|
@ -2,12 +2,12 @@
|
||||||
setup
|
setup
|
||||||
lang="ts"
|
lang="ts"
|
||||||
>
|
>
|
||||||
|
import PageHeaderTemplate from 'src/modules/shared/components/page-header-template.vue';
|
||||||
import TimesheetWrapper from 'src/modules/timesheets/components/timesheet-wrapper.vue';
|
import TimesheetWrapper from 'src/modules/timesheets/components/timesheet-wrapper.vue';
|
||||||
|
|
||||||
import { useAuthStore } from 'src/stores/auth-store';
|
import { useTimesheetStore } from 'src/stores/timesheet-store';
|
||||||
|
|
||||||
const auth_store = useAuthStore();
|
const timesheet_store = useTimesheetStore();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
@ -16,10 +16,14 @@
|
||||||
class="col column fit"
|
class="col column fit"
|
||||||
:style="$q.platform.is.mobile && ($q.screen.width < $q.screen.height) ? '' : 'width: 90vw'"
|
:style="$q.platform.is.mobile && ($q.screen.width < $q.screen.height) ? '' : 'width: 90vw'"
|
||||||
>
|
>
|
||||||
<TimesheetWrapper
|
<PageHeaderTemplate
|
||||||
:employee-email="auth_store.user?.email ?? ''"
|
:title="'timesheet.page_header'"
|
||||||
class="col"
|
:start-date="timesheet_store.pay_period?.period_start ?? ''"
|
||||||
|
:end-date="timesheet_store.pay_period?.period_end ?? ''"
|
||||||
|
class="col-auto"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<TimesheetWrapper class="col" />
|
||||||
</div>
|
</div>
|
||||||
</q-page>
|
</q-page>
|
||||||
</template>
|
</template>
|
||||||
Loading…
Reference in New Issue
Block a user