From 496ce6450512d1b98e29f2226368b7c88771db00 Mon Sep 17 00:00:00 2001 From: Toni Prieto Date: Thu, 31 Oct 2024 21:31:27 +0100 Subject: [PATCH 1/2] 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 }}
- - + Date: Tue, 5 Nov 2024 22:01:05 +0100 Subject: [PATCH 2/2] Allow free-text editing for hierarchical vocabulary fields as well (cherry picked from commit 67f9623cf4878bdc33e60b952cea1e5e0f89418a) --- .../dso-edit-metadata-value.component.html | 14 +++++++------- .../dso-edit-metadata-value.component.ts | 2 +- 2 files changed, 8 insertions(+), 8 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 da6a00bf481..f3bbef3a4d9 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,7 +3,7 @@ [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 }}
- - - -