Skip to content

Commit

Permalink
feat: add application number to 'Ahjo submission complete' splash screen
Browse files Browse the repository at this point in the history
  • Loading branch information
sirtawast committed Oct 7, 2024
1 parent cde593c commit 8ab961c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
3 changes: 2 additions & 1 deletion frontend/benefit/handler/public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,8 @@
},
"submitted": {
"title": "Päätösehdotus on lähetetty Ahjoon",
"text": "Viimeistele päätöskäsittely Ahjossa."
"text": "Viimeistele päätöskäsittely Ahjossa.",
"altText": "Hakemusnumero"
}
}
},
Expand Down
3 changes: 2 additions & 1 deletion frontend/benefit/handler/public/locales/fi/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,8 @@
},
"submitted": {
"title": "Päätösehdotus on lähetetty Ahjoon",
"text": "Viimeistele päätöskäsittely Ahjossa."
"text": "Viimeistele päätöskäsittely Ahjossa.",
"altText": "Hakemusnumero"
}
}
},
Expand Down
3 changes: 2 additions & 1 deletion frontend/benefit/handler/public/locales/sv/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -1237,7 +1237,8 @@
},
"submitted": {
"title": "Päätösehdotus on lähetetty Ahjoon",
"text": "Viimeistele päätöskäsittely Ahjossa."
"text": "Viimeistele päätöskäsittely Ahjossa.",
"altText": "Hakemusnumero"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
$NotificationMessage,
$NotificationTitle,
} from './NotificatinsView.sc';
import Link from 'next/link';

type Props = {
data?: Application;
Expand Down Expand Up @@ -60,10 +61,21 @@ const NotificationView: React.FC<Props> = ({ data }) => {
<$GridCell $colSpan={10}>
<$NotificationTitle>
{isNewAhjoMode
? t(`common:review.decisionProposal.submitted.title`)
? t(`common:review.decisionProposal.submitted.title`, {
applicationNumber: data?.applicationNumber,
})
: t(`${translationsBase}.${translationKey}.title`)}
</$NotificationTitle>
<$NotificationMessage>
{isNewAhjoMode && (
<p>
{t('common:review.decisionProposal.submitted.altText')}
{': '}
<Link href={`${ROUTES.APPLICATION}?id=${data?.id}`}>
{data?.applicationNumber}
</Link>
</p>
)}
{isNewAhjoMode
? t(`common:review.decisionProposal.submitted.text`)
: t(`${translationsBase}.${translationKey}.message`, {
Expand Down

0 comments on commit 8ab961c

Please sign in to comment.