Skip to content

Commit

Permalink
replace invalid email alert on signin page
Browse files Browse the repository at this point in the history
  • Loading branch information
auumgn committed Dec 9, 2024
1 parent 2735417 commit 62c8deb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ <h3 i18n="@@register.yourEmailAddresses" class="orc-font-body margin-top-12">
"
i18n="@@register.invalidEmail2"
>
Please enter a valid email address, for example joe@institution.edu
Please enter a valid email address, for example joe&#64;institution.edu
</mat-error>

<mat-error
Expand All @@ -167,18 +167,12 @@ <h3 i18n="@@register.yourEmailAddresses" class="orc-font-body margin-top-12">
</div>

<ng-container *ngIf="this.emails.hasError('backendError', 'email')">
<div
<ng-container
*ngFor="let error of this.emails.getError('backendError', 'email')"
class="info"
>
<div>
<mat-icon class="large-material-icon material-symbols-outlined"
>error</mat-icon
>
</div>
<div class="content">
<div>
<p>
<app-alert-message>
<div content class="content">
<div>
<ng-container i18n="@@register.theEmailAddress">
The email address
</ng-container>
Expand Down Expand Up @@ -207,10 +201,8 @@ <h3 i18n="@@register.yourEmailAddresses" class="orc-font-body margin-top-12">
<i i18n="@@register.youCannotUseThisEmail">
You cannot use this email address when creating a new ORCID iD.
</i>
</p>
</div>
</div>

<div>
<a
*ngIf="'orcid.frontend.verify.duplicate_email' === error"
(click)="navigateToSignin(emails.get('email').value)"
Expand All @@ -233,8 +225,8 @@ <h3 i18n="@@register.yourEmailAddresses" class="orc-font-body margin-top-12">
Reactivate the ORCID record associated with this email address</a
>
</div>
</div>
</div>
</app-alert-message>
</ng-container>
</ng-container>

<!-- EMAIL CONFIRMATION -->
Expand Down Expand Up @@ -280,7 +272,7 @@ <h3 i18n="@@register.yourEmailAddresses" class="orc-font-body margin-top-12">
"
i18n="@@register.invalidEmail2"
>
Please enter a valid email address, for example joe@institution.edu
Please enter a valid email address, for example joe&#64;institution.edu
</mat-error>
<mat-error
*ngIf="
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,10 @@
display: flex;
flex-direction: column;
}

app-alert-message {
.content > div {
margin-bottom: 16px;
}
margin-bottom: 16px;
}

0 comments on commit 62c8deb

Please sign in to comment.