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