Skip to content

Commit

Permalink
feat(bouquet): collapse accordion on BouquetDetailView
Browse files Browse the repository at this point in the history
  • Loading branch information
abulte committed Feb 26, 2024
1 parent 483022d commit 719f16e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/custom/ecospheres/views/bouquets/BouquetDetailView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const bouquet: Ref<Topic | null> = ref(null)
const theme = ref()
const subtheme = ref()
const loading = useLoading()
const isExpanded = ref({} as { [key: string]: boolean })
const description = computed(() => descriptionFromMarkdown(bouquet))
const showGoBack = computed(() => route.query.fromSearch !== undefined)
Expand Down Expand Up @@ -178,8 +179,8 @@ onMounted(() => {
<DsfrAccordion
:id="datasetProperties.id"
:title="datasetProperties.title"
:expanded-id="datasetProperties.id"
@expand="datasetProperties.id = $event"
:expanded-id="isExpanded[idx]"
@expand="isExpanded[idx] = $event"
>
<BouquetDatasetAvailability
:dataset-properties="datasetProperties"
Expand Down

0 comments on commit 719f16e

Please sign in to comment.