From 3babb36f7689ba6425cacb5b3947975b004055b9 Mon Sep 17 00:00:00 2001 From: Daniel Palafox Date: Wed, 7 Feb 2024 18:24:17 -0500 Subject: [PATCH] fix: Add missing full stop in text and add missing error codes --- .../components/form-personal/form-personal.component.html | 2 +- .../components/form-personal/form-personal.component.ts | 4 +++- src/locale/properties/register/register.en.properties | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/app/register2/components/form-personal/form-personal.component.html b/src/app/register2/components/form-personal/form-personal.component.html index 74b8af9c8f..77613d205c 100644 --- a/src/app/register2/components/form-personal/form-personal.component.html +++ b/src/app/register2/components/form-personal/form-personal.component.html @@ -202,7 +202,7 @@

>a deactivated ORCID recordORCID record. You cannot use this email address when creating a new ORCID iD. diff --git a/src/app/register2/components/form-personal/form-personal.component.ts b/src/app/register2/components/form-personal/form-personal.component.ts index 1cef8533e6..49c4dd4653 100644 --- a/src/app/register2/components/form-personal/form-personal.component.ts +++ b/src/app/register2/components/form-personal/form-personal.component.ts @@ -324,7 +324,9 @@ export class FormPersonalComponent extends BaseForm implements OnInit { const backendError = this.emails.controls.email.errors?.backendError return !( backendError && - backendError[0] === 'orcid.frontend.verify.duplicate_email' && + (backendError[0] === 'orcid.frontend.verify.duplicate_email' || + backendError[0] === 'orcid.frontend.verify.unclaimed_email' || + backendError[0] === 'orcid.frontend.verify.deactivated_email') && !this.nextButtonWasClicked ) } diff --git a/src/locale/properties/register/register.en.properties b/src/locale/properties/register/register.en.properties index 481856ef26..0131543c07 100644 --- a/src/locale/properties/register/register.en.properties +++ b/src/locale/properties/register/register.en.properties @@ -209,7 +209,7 @@ register.isAssociatedWith=is already associated with register.anExisting=an existing register.anUnclaimed=an unclaimed register.aDeactivated=a deactivated -register.orcidRecord=ORCID record +register.orcidRecord=ORCID record. register.youCannotUseThisEmail=You cannot use this email address when creating a new ORCID iD. register.emailIsAlreadyAssociated=This email is already associated with an existing ORCID record. Please use a different email address to continue registering a new ORCID iD. register.resendClaimAddress=Resend a claim email to this email address