refactor: refs #8304 replace Teleport with RightMenu for WorkerCalendarFilter component
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jose Antonio Tubau 2025-01-24 08:36:20 +01:00
parent 6601e2e0ae
commit 686bacd38a
1 changed files with 12 additions and 11 deletions

View File

@ -181,16 +181,18 @@ watch([year, businessFk], () => refreshData());
ref="WorkerFreelanceRef"
auto-load
/>
<Teleport to="#right-panel" v-if="stateStore.isHeaderMounted()">
<WorkerCalendarFilter
ref="workerCalendarFilterRef"
v-model:business-fk="businessFk"
v-model:year="year"
v-model:absence-type="absenceType"
:contract-holidays="contractHolidays"
:year-holidays="yearHolidays"
/>
</Teleport>
<RightMenu>
<template #right-panel>
<WorkerCalendarFilter
ref="workerCalendarFilterRef"
v-model:business-fk="businessFk"
v-model:year="year"
v-model:absence-type="absenceType"
:contract-holidays="contractHolidays"
:year-holidays="yearHolidays"
/>
</template>
</RightMenu>
<Teleport to="#st-default" v-if="stateStore.isSubToolbarShown()">
<VnNotes
v-if="canSeeNotes"
@ -251,7 +253,6 @@ watch([year, businessFk], () => refreshData());
}
</style>
<i18n>
en:
addAbsencesText: To start adding absences, click an absence type from the right menu and then on the day you want to add an absence