From 6b0047cc2e4df332adfc2d5c91933b57b9ae4b00 Mon Sep 17 00:00:00 2001 From: albina Date: Mon, 14 Oct 2024 13:56:25 +0000 Subject: [PATCH 1/3] fix(service-portal): sp list submitted --- .../signature-collection/src/lib/messages.ts | 5 +++++ .../src/screens/Parliamentary/OwnerView/index.tsx | 9 ++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/libs/service-portal/signature-collection/src/lib/messages.ts b/libs/service-portal/signature-collection/src/lib/messages.ts index 0518d12283d8..510616d08ca2 100644 --- a/libs/service-portal/signature-collection/src/lib/messages.ts +++ b/libs/service-portal/signature-collection/src/lib/messages.ts @@ -109,6 +109,11 @@ export const m = defineMessages({ defaultMessage: 'Ógilt meðmæli', description: '', }, + listSubmitted: { + id: 'sp.signatureCollection:listSubmitted', + defaultMessage: 'Lista skilað', + description: '', + }, /* Signee View */ noCollectionIsActive: { diff --git a/libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/index.tsx b/libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/index.tsx index ae225fa9dcc9..832bec09a9cd 100644 --- a/libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/index.tsx +++ b/libs/service-portal/signature-collection/src/screens/Parliamentary/OwnerView/index.tsx @@ -106,7 +106,7 @@ const OwnerView = ({ withLabel: true, }} eyebrow={list.title.split(' - ')[0]} - cta={{ + cta={list.active ? { label: formatMessage(m.viewList), variant: 'text', icon: 'arrowForward', @@ -120,8 +120,8 @@ const OwnerView = ({ }, }) }, - }} - tag={{ + } : undefined} + tag={list.active ? { label: 'Cancel collection', renderTag: () => ( ), + } : { + label: formatMessage(m.listSubmitted), + variant: 'blueberry', }} /> From d66f4f4deb84d8b72dea949232fc25b35f00cd6b Mon Sep 17 00:00:00 2001 From: albina Date: Mon, 14 Oct 2024 13:59:33 +0000 Subject: [PATCH 2/3] tweak --- libs/portals/admin/signature-collection/src/lib/messages.ts | 5 +++++ .../src/shared-components/completeReview/lockList/index.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/portals/admin/signature-collection/src/lib/messages.ts b/libs/portals/admin/signature-collection/src/lib/messages.ts index da266b710980..53828d6ed9aa 100644 --- a/libs/portals/admin/signature-collection/src/lib/messages.ts +++ b/libs/portals/admin/signature-collection/src/lib/messages.ts @@ -468,6 +468,11 @@ export const m = defineMessages({ defaultMessage: 'Læsa söfnun', description: '', }, + lockListDescription: { + id: 'admin-portal.signature-collection:lockListDescription', + defaultMessage: 'Ýtið hér ef framboð hefur skilað inn framboðsgögnum fyrir lok framboðsfrest', + description: '', + }, lockListSuccess: { id: 'admin-portal.signature-collection:lockListSuccess', defaultMessage: 'Tókst að læsa söfnun', diff --git a/libs/portals/admin/signature-collection/src/shared-components/completeReview/lockList/index.tsx b/libs/portals/admin/signature-collection/src/shared-components/completeReview/lockList/index.tsx index 8cf2e5903495..5a95d7203aee 100644 --- a/libs/portals/admin/signature-collection/src/shared-components/completeReview/lockList/index.tsx +++ b/libs/portals/admin/signature-collection/src/shared-components/completeReview/lockList/index.tsx @@ -56,7 +56,7 @@ const ActionLockList = ({ closeButtonLabel={''} > - {formatMessage(m.lockList)} + {formatMessage(m.lockListDescription)}