From e171c9fb83ed17ec2ec02bb0e099ccb0dbf40ec6 Mon Sep 17 00:00:00 2001 From: tristan Date: Tue, 9 Jun 2026 17:34:56 +0200 Subject: [PATCH] =?UTF-8?q?feat(heures)=20:=20sites=20en=20tags=20et=20d?= =?UTF-8?q?=C3=A9s=C3=A9lectionn=C3=A9s=20par=20d=C3=A9faut=20dans=20le=20?= =?UTF-8?q?drawer=20d'export?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Affichage des sites sélectionnés en tags (display-tag) - Aucun site sélectionné à l'ouverture du drawer (prop initialSiteIds retirée) Co-Authored-By: Claude Opus 4.8 (1M context) --- frontend/components/hours/HoursDayExportDrawer.vue | 6 +++--- frontend/pages/hours.vue | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/components/hours/HoursDayExportDrawer.vue b/frontend/components/hours/HoursDayExportDrawer.vue index aaa1501..dca3799 100644 --- a/frontend/components/hours/HoursDayExportDrawer.vue +++ b/frontend/components/hours/HoursDayExportDrawer.vue @@ -23,6 +23,7 @@ groupClass="w-full mt-2" label="Sites" display-select-all + display-tag /> @@ -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([...props.initialSiteIds]) +const selectedSites = ref([]) 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 = [] } } ) diff --git a/frontend/pages/hours.vue b/frontend/pages/hours.vue index b36de7c..5b59120 100644 --- a/frontend/pages/hours.vue +++ b/frontend/pages/hours.vue @@ -16,7 +16,6 @@ v-model="isExportDrawerOpen" :sites="sites" :initial-date="selectedDate" - :initial-site-ids="selectedSiteIds" :is-loading="isExporting" @submit="handleExport" />