From 8cde6bafe777b9d8392cf91d4dd76c69bc186692 Mon Sep 17 00:00:00 2001 From: Hassane Diaby Date: Thu, 23 May 2024 18:03:32 +0200 Subject: [PATCH] bug #12619 : Non translated search criterias after updating rules --- .../criteria-search/criteria-search.component.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/ui-frontend/projects/archive-search/src/app/archive/criteria-search/criteria-search.component.html b/ui/ui-frontend/projects/archive-search/src/app/archive/criteria-search/criteria-search.component.html index eb24e80e2a1..6e0f549b29d 100644 --- a/ui/ui-frontend/projects/archive-search/src/app/archive/criteria-search/criteria-search.component.html +++ b/ui/ui-frontend/projects/archive-search/src/app/archive/criteria-search/criteria-search.component.html @@ -150,7 +150,7 @@ ? ('ARCHIVE_SEARCH.SEARCH_CRITERIA_FILTER.FIELDS.GUID_TO_INCLUDE' | translate) : ('ARCHIVE_SEARCH.SEARCH_CRITERIA_FILTER.FIELDS.GUID_TO_EXCLUDE' | translate)) + ' : ' + - criteriaVal.values[0].label + criteriaVal.values[0].value.value " matTooltipClass="vitamui-tooltip" [matTooltipShowDelay]="300" @@ -167,7 +167,7 @@ ? ('ARCHIVE_SEARCH.SEARCH_CRITERIA_FILTER.FIELDS.GUID_TO_INCLUDE' | translate) : ('ARCHIVE_SEARCH.SEARCH_CRITERIA_FILTER.FIELDS.GUID_TO_EXCLUDE' | translate)) + ' : ' + - criteriaVal.values[criteriaVal.values.length - 1].label + criteriaVal.values[criteriaVal.values.length - 1].value.value }} @@ -240,7 +240,7 @@ criteriaValue.valueTranslated ? ('ARCHIVE_SEARCH.SEARCH_CRITERIA_FILTER.' + getCategoryName(criteriaVal.category) + '.' + criteriaValue.label | translate) - : criteriaValue.label + : criteriaVal.key === 'ALL_ARCHIVE_UNIT_TYPES' ? criteriaValue.label : criteriaValue.value.value }}" matTooltipClass="vitamui-tooltip" [matTooltipShowDelay]="300" @@ -264,7 +264,7 @@ criteriaValue.valueTranslated ? ('ARCHIVE_SEARCH.SEARCH_CRITERIA_FILTER.' + getCategoryName(criteriaVal.category) + '.' + criteriaValue.label | translate) - : (criteriaValue.label | truncate: 50) + : criteriaVal.key === 'ALL_ARCHIVE_UNIT_TYPES' ? (criteriaValue.label | truncate: 50) : (criteriaValue.value.value | truncate: 50) }}