diff --git a/src/app/register2/components/backend-error/backend-error.component.html b/src/app/register2/components/backend-error/backend-error.component.html index d08320c6bb..45980f103d 100644 --- a/src/app/register2/components/backend-error/backend-error.component.html +++ b/src/app/register2/components/backend-error/backend-error.component.html @@ -1,4 +1,4 @@ - + This email already exists in our system. Would you like to diff --git a/src/app/register2/components/backend-error/backend-error.component.ts b/src/app/register2/components/backend-error/backend-error.component.ts index 6e36e49331..dabc88c937 100644 --- a/src/app/register2/components/backend-error/backend-error.component.ts +++ b/src/app/register2/components/backend-error/backend-error.component.ts @@ -29,6 +29,8 @@ enum RegisterBackendErrors { export class BackendErrorComponent implements OnInit { recognizedError = RegisterBackendErrors _errorCode: string + @Input() disableInlineAlreadyExistError = false + @Input() set errorCode(errorCode: string) { // This will change the string send by the backend into a code, to handle the error trough a code 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 17b5519dd3..53ab23f07b 100644 --- a/src/app/register2/components/form-personal/form-personal.component.html +++ b/src/app/register2/components/form-personal/form-personal.component.html @@ -92,7 +92,7 @@

class="orc-font-small-print" id="email-input-input-label" [ngClass]="{ - error: emailFormTouched && form.hasError('required', 'emails.email') + error: emailFormTouched && emails.controls.email.errors }" id="email-input-label" i18n="@@register.primaryEmail" @@ -124,8 +124,10 @@

@@ -141,6 +143,7 @@

*ngFor="let error of this.emails.getError('backendError', 'email')" >