Skip to content

Commit

Permalink
Merge branch 'main' into transifex
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonardo Mendoza Fernadez authored and Leonardo Mendoza Fernadez committed Dec 14, 2023
2 parents e18abf8 + 50d21f1 commit d832d2c
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 39 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
## v2.51.13 - 2023-12-08

[Full Changelog](https://github.com/ORCID/orcid-angular/compare/v2.51.12...v2.51.13)

## v2.51.12 - 2023-12-08

[Full Changelog](https://github.com/ORCID/orcid-angular/compare/v2.51.11...v2.51.12)

- [#2116](https://github.com/ORCID/orcid-angular/pull/2116):
- [#2116](https://github.com/ORCID/orcid-angular/pull/2116):

### Fix

Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
<ng-container *ngIf="recognizedError[errorCode] === 0">
<ng-container *ngIf="!registrationTogglz">
<ng-container i18n="@@register.emailAlreadyExists"
>This email already exists in our system. Would you like to</ng-container
>

<a (click)="navigateToSignin(value)" i18n="@@register.signinLowerCase"
>sign in</a
><ng-container i18n="@@shared.questionMark">?</ng-container>
</ng-container>

<ng-container *ngIf="registrationTogglz && nextButtonWasClicked">
<ng-container
*ngIf="
(showEmailAlreadyExistUntilNextButtonWasClicked &&
nextButtonWasClicked) ||
!showEmailAlreadyExistUntilNextButtonWasClicked
"
>
<ng-container i18n="@@register.emailIsAlreadyAssociated"
>This email is already associated with an existing ORCID record. Please
use a different email address.</ng-container
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export class BackendErrorComponent implements OnInit {
recognizedError = RegisterBackendErrors
_errorCode: string
@Input() nextButtonWasClicked = false
@Input() showEmailAlreadyExistUntilNextButtonWasClicked = false
registrationTogglz = false

@Input()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@
index as i
"
>
<mat-label class="orc-font-small-print" id="additional-email-label">
<mat-label
class="orc-font-small-print"
id="additional-email-label"
[ngClass]="{
error: additionalEmailsTouched && additionalEmails.valid === false
}"
>
<ng-container i18n="@@register.additionalEmails"
>Additional email</ng-container
>
Expand Down Expand Up @@ -36,19 +42,21 @@
>
Please enter a valid email address, for example [email protected]
</mat-error>
<mat-error
*ngFor="
let error of getControlErrorAtFormLevel(
additionalEmailControl.value,
'backendErrors'
)
"
>
<app-backend-error
[errorCode]="error"
[value]="additionalEmailControl.value.value"
></app-backend-error>
</mat-error>
<ng-container *ngIf="additionalEmailsTouched">
<mat-error
*ngFor="
let error of getControlErrorAtFormLevel(
additionalEmailControl.value,
'backendErrors'
)
"
>
<app-backend-error
[errorCode]="error"
[value]="additionalEmailControl.value.value"
></app-backend-error>
</mat-error>
</ng-container>

<!-- <button
*ngIf="i == 0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { ErrorStateMatcherForFormLevelErrors } from '../../ErrorStateMatcherForF
styleUrls: [
'./form-personal-additional-emails.component.scss',
'../register2.style.scss',
'../register2.scss-theme.scss',
],
})
export class FormPersonalAdditionalEmailsComponent implements AfterViewInit {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ <h3 i18n="@@register.yourEmailAddresses" class="orc-font-body margin-top-12">
*ngFor="let error of this.emails.getError('backendError', 'email')"
>
<app-backend-error
[showEmailAlreadyExistUntilNextButtonWasClicked]="true"
[nextButtonWasClicked]="nextButtonWasClicked"
[errorCode]="error"
[value]="emails.get('email').value"
Expand Down Expand Up @@ -273,7 +274,7 @@ <h3 i18n="@@register.yourEmailAddresses" class="orc-font-body margin-top-12">
</h3>
</div>
<div>
<ng-container i18n="@@register.addA">Add a</ng-container>
<ng-container i18n="@@register.addA">Add an additional</ng-container>
<strong i18n="@@register.professionalEmail"
>professional email</strong
>
Expand All @@ -297,7 +298,7 @@ <h3 i18n="@@register.yourEmailAddresses" class="orc-font-body margin-top-12">
<div class="content">
<div>
<h3 class="orc-font-body" i18n="@@register.addAnotherEmailToSecure">
Add another email to secure your account
Add an additional email to secure your account
</h3>
</div>
<div i18n="@@register.addingAnAddiotionalEmailAsBackup">
Expand Down Expand Up @@ -327,13 +328,12 @@ <h3 class="orc-font-body" i18n="@@register.addAnotherEmailToSecure">
</div>
<div>
<ng-container i18n="@@register.weRecommendAdding"
>We recommend adding a </ng-container
>&nbsp;<strong i18n="@@register.personalEmail"
>We recommend adding an additional</ng-container
>
<strong i18n="@@register.personalEmail"
>personal email</strong
>&nbsp;
<ng-container i18n="@@register.asBackupSoYouAlways">
as backup so you always have access to your ORCID account if you
change jobs or roles.</ng-container
>
<ng-container i18n="@@register.asBackupSoYouAlways">as backup so you always have access to your ORCID account if you change jobs or roles.</ng-container
>
</div>
</div>
Expand Down
3 changes: 1 addition & 2 deletions src/app/register2/components/step-d/step-d.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,9 @@ <h2 class="orc-font-body-small" i18n="@@register.step2.4">
color="primary"
matStepperPrevious
type="button"
i18n="@@shared.previousStep"
id="step-c-back-button"
>
<a> Previous Step</a>
<a i18n="@@shared.previousStep"> Previous Step</a>
</button>
</div>
</form>
Expand Down
6 changes: 3 additions & 3 deletions src/locale/properties/register/register.en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,12 @@ register.confirmationEmailNotMatch2=Email addresses do not match
register.thisLooksLikeAPersonalEmail=This looks like a personal email
register.asBackupSoWeCanBetter=as backup so we can better recommend affiliations and other related data to you.
register.professionalEmail=professional email
register.addA=Add a
register.addAnotherEmailToSecure=Add another email to secure your account
register.addA=Add an additional
register.addAnotherEmailToSecure=Add an additional email to secure your account
register.addingAnAddiotionalEmailAsBackup=Adding an additional email as backup helps secure your account and makes sure you can always sign in.
regiser.thisLooksLikeAProffessional=This looks like a professional email
register.asBackupSoYouAlways=as backup so you always have access to your ORCID account if you change jobs or roles.
register.weRecommendAdding=We recommend adding a
register.weRecommendAdding=We recommend adding an additional
register.youMustAccept=You must accept the terms we use and consent to your data being processed in the United States
register.termsOfUse2=terms of use
register.agree2=and agree to my data being publicly accessible where marked as “Visible to Everyone”.
Expand Down

0 comments on commit d832d2c

Please sign in to comment.