From 5f75cff1592454c64c25588ec6e79fe0707a2553 Mon Sep 17 00:00:00 2001 From: mkovalua Date: Wed, 6 May 2026 17:47:25 +0300 Subject: [PATCH 1/2] show registry.overview.endEmbargo for registration status if it is not set --- .../registry-statuses.component.html | 7 +++---- .../registry-statuses.component.ts | 17 +++++++++++++++++ 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/src/app/features/registry/components/registry-statuses/registry-statuses.component.html b/src/app/features/registry/components/registry-statuses/registry-statuses.component.html index 016932507..5ba34afb1 100644 --- a/src/app/features/registry/components/registry-statuses/registry-statuses.component.html +++ b/src/app/features/registry/components/registry-statuses/registry-statuses.component.html @@ -1,17 +1,16 @@ -

{{ 'registry.overview.statuses.' + registry()?.status + '.text' | translate }}

+

{{ statusTranslations().text | translate }}

-

{{ 'registry.overview.statuses.' + registry()?.status + '.short' | translate }}

+

{{ statusTranslations().short | translate }}

{{ - 'registry.overview.statuses.' + registry()?.status + '.long' - | translate: { embargoEndDate: embargoEndDate(), email: supportEmail } + statusTranslations().long | translate: { embargoEndDate: embargoEndDate(), email: supportEmail } }} diff --git a/src/app/features/registry/components/registry-statuses/registry-statuses.component.ts b/src/app/features/registry/components/registry-statuses/registry-statuses.component.ts index abf8b81e9..b36a67728 100644 --- a/src/app/features/registry/components/registry-statuses/registry-statuses.component.ts +++ b/src/app/features/registry/components/registry-statuses/registry-statuses.component.ts @@ -55,6 +55,23 @@ export class RegistryStatusesComponent { return date ? new Date(date).toDateString() : null; }); + statusTranslations = computed(() => { + const status = this.registry()?.status; + if (!status) { + return { + text: 'registry.overview.endEmbargo', + short: 'registry.overview.endEmbargo', + long: 'registry.overview.endEmbargo', + }; + } + const basePath = `registry.overview.statuses.${status}`; + return { + text: `${basePath}.text`, + short: `${basePath}.short`, + long: `${basePath}.long`, + }; + }); + openWithdrawDialog(): void { const registry = this.registry(); From c2b5849b3fe8b219984b5d9b87b71d5a626501dd Mon Sep 17 00:00:00 2001 From: mkovalua Date: Wed, 6 May 2026 18:19:14 +0300 Subject: [PATCH 2/2] resolve linter errors --- .../registry-statuses/registry-statuses.component.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/features/registry/components/registry-statuses/registry-statuses.component.html b/src/app/features/registry/components/registry-statuses/registry-statuses.component.html index 5ba34afb1..6fa7ed144 100644 --- a/src/app/features/registry/components/registry-statuses/registry-statuses.component.html +++ b/src/app/features/registry/components/registry-statuses/registry-statuses.component.html @@ -9,9 +9,7 @@

{{ statusTranslations().short | translate }}

- {{ - statusTranslations().long | translate: { embargoEndDate: embargoEndDate(), email: supportEmail } - }} + {{ statusTranslations().long | translate: { embargoEndDate: embargoEndDate(), email: supportEmail } }} @if (isAccepted()) {