Skip to content

Commit

Permalink
🤖 GITHUB ACTIONS format_prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
orcid-releaser committed Jan 25, 2024
1 parent 98245ca commit b85e8be
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
<ng-container *ngIf="
recognizedError[errorCode] === 0 ||
recognizedError[errorCode] === 3 ||
recognizedError[errorCode] === 4
">
<ng-container
*ngIf="
recognizedError[errorCode] === 0 ||
recognizedError[errorCode] === 3 ||
recognizedError[errorCode] === 4
"
>
<ng-container
*ngIf="
(showEmailAlreadyExistUntilNextButtonWasClicked &&
Expand All @@ -11,9 +13,9 @@
"
>
<ng-container i18n="@@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.
</ng-container
>
>This email is already associated with an existing ORCID record. Please
use a different email address to continue registering a new ORCID iD.
</ng-container>
</ng-container>
</ng-container>

Expand All @@ -31,5 +33,4 @@
Additional emails cannot be duplicated
</ng-container>


<ng-container *ngIf="unrecognizedError"> {{ errorCode }} </ng-container>
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class BackendErrorComponent implements OnInit {
constructor(
private _platformInfo: PlatformInfoService,
private _router: Router,
private _togglz: TogglzService,
private _togglz: TogglzService
) {}
ngOnInit() {
this._togglz
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,16 +180,24 @@ <h3 i18n="@@register.yourEmailAddresses" class="orc-font-body margin-top-12">
<ng-container i18n="@@register.isAssociatedWith"
>is already associated with
</ng-container>
<ng-container *ngIf="'orcid.frontend.verify.duplicate_email' === error" i18n="@@register.anExisting"
<ng-container
*ngIf="'orcid.frontend.verify.duplicate_email' === error"
i18n="@@register.anExisting"
>an existing
</ng-container>
<ng-container *ngIf="'orcid.frontend.verify.unclaimed_email' === error" i18n="@@register.anUnclaimed"
<ng-container
*ngIf="'orcid.frontend.verify.unclaimed_email' === error"
i18n="@@register.anUnclaimed"
>an unclaimed
</ng-container>
<ng-container *ngIf="'orcid.frontend.verify.deactivated_email' === error" i18n="@@register.aDeactivated"
<ng-container
*ngIf="'orcid.frontend.verify.deactivated_email' === error"
i18n="@@register.aDeactivated"
>a deactivated
</ng-container>
<ng-container i18n="@@register.orcidRecord">ORCID record</ng-container>
<ng-container i18n="@@register.orcidRecord"
>ORCID record</ng-container
>
<i i18n="@@register.youCannotUseThisEmail">
You cannot use this email address when creating a new ORCID iD.
</i>
Expand Down
2 changes: 1 addition & 1 deletion src/app/types/register.local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ export enum RegisterBackendErrors {
'additionalEmailCantBePrimaryEmail',
'duplicatedAdditionalEmail',
'orcid.frontend.verify.unclaimed_email',
'orcid.frontend.verify.deactivated_email'
'orcid.frontend.verify.deactivated_email',
}

0 comments on commit b85e8be

Please sign in to comment.