feat(heures) : tri des employés par ordre manuel sur l'export PDF jour #26

Merged
tristan merged 2 commits from feat/export-heures-jour-tri-order into develop 2026-06-09 15:35:32 +00:00
2 changed files with 3 additions and 4 deletions
Showing only changes of commit e171c9fb83 - Show all commits
@@ -23,6 +23,7 @@
groupClass="w-full mt-2"
label="Sites"
display-select-all
display-tag
/>
</div>
@@ -49,7 +50,6 @@ const props = defineProps<{
modelValue: boolean
sites: Site[]
initialDate: string
initialSiteIds: number[]
isLoading?: boolean
}>()
@@ -64,7 +64,7 @@ const drawerOpen = computed({
})
const selectedDate = ref(props.initialDate)
const selectedSites = ref<number[]>([...props.initialSiteIds])
const selectedSites = ref<number[]>([])
const siteOptions = computed(() =>
props.sites.map((site) => ({ label: site.name, value: site.id }))
@@ -80,7 +80,7 @@ watch(
(isOpen) => {
if (isOpen) {
selectedDate.value = props.initialDate
selectedSites.value = [...props.initialSiteIds]
selectedSites.value = []
}
}
)
-1
View File
@@ -16,7 +16,6 @@
v-model="isExportDrawerOpen"
:sites="sites"
:initial-date="selectedDate"
:initial-site-ids="selectedSiteIds"
:is-loading="isExporting"
@submit="handleExport"
/>