From 05f90526301d3c573c8fedcc33f95fdf19c156bc Mon Sep 17 00:00:00 2001 From: Romuald Caplier Date: Fri, 31 May 2024 12:12:41 +0200 Subject: [PATCH] [BP] refactor(datahub): added an error message when record has no link. backported from https://github.com/geonetwork/geonetwork-ui/pull/874 --- .../record-metadata.component.html | 15 ++-- .../record-metadata.component.spec.ts | 39 ++++++--- .../record-metadata.component.ts | 11 +++ .../results-list.container.component.html | 8 +- libs/ui/elements/src/index.ts | 3 +- .../error.component.css} | 0 .../error.component.html} | 21 ++++- .../src/lib/error/error.component.spec.ts | 86 +++++++++++++++++++ .../error.component.stories.ts} | 14 ++- .../error.component.ts} | 9 +- .../search-results-error.component.spec.ts | 24 ------ .../ui/elements/src/lib/ui-elements.module.ts | 6 +- translations/de.json | 1 + translations/en.json | 1 + translations/es.json | 1 + translations/fr.json | 1 + translations/it.json | 1 + translations/nl.json | 1 + translations/pt.json | 1 + translations/sk.json | 1 + 20 files changed, 177 insertions(+), 67 deletions(-) rename libs/ui/elements/src/lib/{search-results-error/search-results-error.component.css => error/error.component.css} (100%) rename libs/ui/elements/src/lib/{search-results-error/search-results-error.component.html => error/error.component.html} (66%) create mode 100644 libs/ui/elements/src/lib/error/error.component.spec.ts rename libs/ui/elements/src/lib/{search-results-error/search-results-error.component.stories.ts => error/error.component.stories.ts} (80%) rename libs/ui/elements/src/lib/{search-results-error/search-results-error.component.ts => error/error.component.ts} (63%) delete mode 100644 libs/ui/elements/src/lib/search-results-error/search-results-error.component.spec.ts diff --git a/apps/datahub/src/app/record/record-metadata/record-metadata.component.html b/apps/datahub/src/app/record/record-metadata/record-metadata.component.html index b26009bd5..58a6cef5b 100644 --- a/apps/datahub/src/app/record/record-metadata/record-metadata.component.html +++ b/apps/datahub/src/app/record/record-metadata/record-metadata.component.html @@ -130,7 +130,12 @@ > - + + +