From 78484bd7da4a57ec4990c30c730e164af6bf4609 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Bult=C3=A9?= Date: Thu, 16 Apr 2026 09:10:28 +0200 Subject: [PATCH 1/4] feat(search): multiple configs for same class --- .../src/components/Search/GlobalSearch.vue | 135 ++++++------------ datagouv-components/src/types/search.ts | 5 + 2 files changed, 52 insertions(+), 88 deletions(-) diff --git a/datagouv-components/src/components/Search/GlobalSearch.vue b/datagouv-components/src/components/Search/GlobalSearch.vue index fbdbbd9a1..587b901e9 100644 --- a/datagouv-components/src/components/Search/GlobalSearch.vue +++ b/datagouv-components/src/components/Search/GlobalSearch.vue @@ -11,7 +11,7 @@ >
@@ -30,10 +30,10 @@ > {{ typeConfig.name || typesMeta[typeConfig.class].name }} @@ -127,7 +127,7 @@ v-model="producerType" :facets="getFacets('producer_type')" :loading="searchResultsStatus === 'pending'" - :exclude="currentType === 'organizations' ? ['user'] : []" + :exclude="currentTypeConfig?.class === 'organizations' ? ['user'] : []" :style="{ order: getOrder('producer_type') }" /> -