diff --git a/frontend/public/locales/en/common.json b/frontend/public/locales/en/common.json index 4a95405994f06f149976e6197ee6434044504c7b..f5da93d5e18fe9d62b101e99c6eb46b0a5358444 100644 --- a/frontend/public/locales/en/common.json +++ b/frontend/public/locales/en/common.json @@ -140,8 +140,8 @@ "sponsorSubmitSuccessDescription": "Your registration has been completed. You will receive an e-mail when the guest has filled in the missing information, so that the guest account can be approved.", "guestSubmitSuccessDescription": "Your registration is now completed. You will receive an e-mail or SMS when your account has been created.", "confirmationDialog": { - "confirmIdentityText": "Confirm?", - "confirmIdentityTitle": "Are you sure you want to verify this identity?", + "confirmIdentityText": "Are you sure you want to verify this identity?", + "confirmIdentityTitle": "Confirm?", "cancelInvitation": "Cancel invitation?", "cancelInvitationDescription": "Do you want to cancel the invitation?" } diff --git a/frontend/public/locales/nb/common.json b/frontend/public/locales/nb/common.json index 989e8c09c4ac896ff70545daac973b0d41b99cb0..340b5a4f6ab079ceaf47622311d46f6236a4526b 100644 --- a/frontend/public/locales/nb/common.json +++ b/frontend/public/locales/nb/common.json @@ -140,8 +140,8 @@ "sponsorSubmitSuccessDescription": "Din registrering er nå fullført. Du vil få en e-post når gjesten har fylt inn informasjonen som mangler, slik at gjestekontoen kan godkjennes.", "guestSubmitSuccessDescription": "Din registrering er nå fullført. Du vil få en e-post eller SMS når kontoen er opprettet.", "confirmationDialog": { - "confirmIdentityText": "Bekrefte?", - "confirmIdentityTitle": "Er du sikker på at du vil bekrefte denne identiteten?", + "confirmIdentityText": "Er du sikker på at du vil bekrefte denne identiteten?", + "confirmIdentityTitle": "Bekrefte?", "cancelInvitation": "Kanseller invitasjon?", "cancelInvitationDescription": "Vil du kansellere invitasjonen?" } diff --git a/frontend/public/locales/nn/common.json b/frontend/public/locales/nn/common.json index 4024b7a0656fb0463357608b4900e58d32dc07df..2a288318f715d84c7f88fd242cc2393f0176e1a7 100644 --- a/frontend/public/locales/nn/common.json +++ b/frontend/public/locales/nn/common.json @@ -141,8 +141,8 @@ "sponsorSubmitSuccessDescription": "Di registrering er no fullført. Du vil få ein e-post når gjesten har fylt inn informasjonen som manglar, slik at gjestekontoen kan godkjennast.", "guestSubmitSuccessDescription": "Di registrering er no fullført. Du vil få ein e-post eller SMS når kontoen er oppretta.", "confirmationDialog": { - "confirmIdentityText": "Bekrefte?", - "confirmIdentityTitle": "Er du sikker på at du vil bekrefte denne identiteten?", + "confirmIdentityText": "Er du sikker på at du vil bekrefte denne identiteten?", + "confirmIdentityTitle": "Bekrefte?", "cancelInvitation": "Kanseller invitasjon?", "cancelInvitationDescription": "Vil du kansellere invitasjonen?" } diff --git a/frontend/src/components/identityLine/index.tsx b/frontend/src/components/identityLine/index.tsx index 54fbb24b2a7f1ed9addaed8e977f597480d36c9f..d1dc4f1d90d16aa532267435dcecd07c0c791961 100644 --- a/frontend/src/components/identityLine/index.tsx +++ b/frontend/src/components/identityLine/index.tsx @@ -10,14 +10,21 @@ interface IdentityLineProps { text: string identity: Identity | null reloadGuest: () => void + reloadGuests: () => void } -const IdentityLine = ({ text, identity, reloadGuest }: IdentityLineProps) => { +const IdentityLine = ({ + text, + identity, + reloadGuest, + reloadGuests, +}: IdentityLineProps) => { // Make a line with a confirmation button if the identity has not been verified const [confirmOpen, setConfirmOpen] = useState(false) const [t] = useTranslation('common') const verifyIdentity = (id: string) => async () => { await fetch(`/api/ui/v1/identity/${id}`, submitJsonOpts('PATCH', {})) reloadGuest() + reloadGuests() } if (identity == null) { diff --git a/frontend/src/routes/sponsor/guest/guestInfo/index.tsx b/frontend/src/routes/sponsor/guest/guestInfo/index.tsx index 4d2132c36c1538d9abb0477e0b726171bacd124b..f0442520b67abea53b60422844b5e17e0c8cf02f 100644 --- a/frontend/src/routes/sponsor/guest/guestInfo/index.tsx +++ b/frontend/src/routes/sponsor/guest/guestInfo/index.tsx @@ -235,11 +235,13 @@ export default function GuestInfo({ text={t('input.nationalIdNumber')} identity={guest.fnr} reloadGuest={reloadGuest} + reloadGuests={reloadGuests} /> <IdentityLine text={t('input.passportNumber')} identity={guest.passport} reloadGuest={reloadGuest} + reloadGuests={reloadGuests} /> <TableRow> <TableCell align="left">{t('input.mobilePhone')}</TableCell>