From 496ce6450512d1b98e29f2226368b7c88771db00 Mon Sep 17 00:00:00 2001 From: Toni Prieto Date: Thu, 31 Oct 2024 21:31:27 +0100 Subject: [PATCH] Add button to enable free-text editing in dropdown fields during item edition and fix error when clicking "Clear selection" option (cherry picked from commit 28c8550ef5c23e0a6c3b08d274970e5522aecb4e) --- .../dso-edit-metadata-value.component.html | 10 ++++- .../dso-edit-metadata-value.component.ts | 37 ++++++++++++++++--- src/assets/i18n/en.json5 | 4 ++ 3 files changed, 44 insertions(+), 7 deletions(-) diff --git a/src/app/dso-shared/dso-edit-metadata/dso-edit-metadata-value/dso-edit-metadata-value.component.html b/src/app/dso-shared/dso-edit-metadata/dso-edit-metadata-value/dso-edit-metadata-value.component.html index 25b82b9b437..da6a00bf481 100644 --- a/src/app/dso-shared/dso-edit-metadata/dso-edit-metadata-value/dso-edit-metadata-value.component.html +++ b/src/app/dso-shared/dso-edit-metadata/dso-edit-metadata-value/dso-edit-metadata-value.component.html @@ -3,15 +3,21 @@ [ngClass]="{ 'ds-warning': mdValue.reordered || mdValue.change === DsoEditMetadataChangeTypeEnum.UPDATE, 'ds-danger': mdValue.change === DsoEditMetadataChangeTypeEnum.REMOVE, 'ds-success': mdValue.change === DsoEditMetadataChangeTypeEnum.ADD, 'h-100': isOnlyValue }">
{{ mdValue.newValue.value }}
- - +