-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into lmendoza/9313-qa-notification-email-address-…
…in-account-settings-doesnt-update-when-theres-a-change
- Loading branch information
Showing
19 changed files
with
114 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,20 +79,22 @@ <h2 class="orc-font-body-large" i18n="@@side-bar.emailAddressesUppercase"> | |
> | ||
<input | ||
matInput | ||
#emailInput | ||
formControlName="email" | ||
type="email" | ||
appTrim | ||
[attr.aria-label]="ariaLabelPrimaryEmail" | ||
[attr.aria-label]=" | ||
email.putCode.startsWith('new') | ||
? ariaLabelNewEmailAddress | ||
: ariaLabelEmailAddress + ' ' + email.value | ||
" | ||
/> | ||
</mat-form-field> | ||
<div | ||
*ngIf="showEmailAsVerified(email.putCode)" | ||
class="verified-email" | ||
> | ||
<strong tabindex="0" class="row orc-font-body-small"> | ||
<span class="sr-only" i18n="@@side-bar.primaryEmail" | ||
>Primary email address</span | ||
> | ||
{{ emailsForm.value[email.putCode].email }}</strong | ||
> | ||
<em | ||
|
@@ -144,7 +146,10 @@ <h2 class="orc-font-body-large" i18n="@@side-bar.emailAddressesUppercase"> | |
> | ||
</button> | ||
</div> | ||
<div class="row actions-wrapper"> | ||
<div | ||
class="row actions-wrapper" | ||
[ngClass]="{ 'actions-wrapper-mobile': isMobile }" | ||
> | ||
<div | ||
class="actions-sub-wrapper" | ||
*ngIf="showNonVerifiedData(email.putCode)" | ||
|
@@ -189,10 +194,11 @@ <h2 class="orc-font-body-large" i18n="@@side-bar.emailAddressesUppercase"> | |
emailsForm.hasError('email', [email.putCode, 'email']) && | ||
emailsForm.get(email.putCode).get('email').touched | ||
" | ||
i18n="@@side-bar.invalidEmailFormat" | ||
i18n="@@side-bar.invalidEmailErrorMessage" | ||
class="orc-font-small-print" | ||
> | ||
Invalid email format | ||
Please enter a valid email address, for example | ||
[email protected] | ||
</mat-error> | ||
|
||
<mat-error | ||
|
@@ -245,22 +251,25 @@ <h2 class="orc-font-body-large" i18n="@@side-bar.emailAddressesUppercase"> | |
i18n="@@side-bar.yourOrcidAccountSettings" | ||
href="/account" | ||
target="_blank" | ||
[attr.aria-label]="ariaOpenAccountSettings" | ||
rel="noopener noreferrer" | ||
>your ORCID account settings.</a | ||
> | ||
</p> | ||
<mat-form-field | ||
appearance="outline" | ||
class="mat-form-field-min select-notifications-email" | ||
[ngClass]="{ | ||
'disabled-select-notifications-email': !hasVerifiedEmailAddress() | ||
}" | ||
> | ||
<mat-select | ||
outline="black" | ||
[aria-label]="ariaLabelSelect" | ||
[attr.disabled]="!hasVerifiedEmailAddress()" | ||
[aria-label]=" | ||
ariaLabelNotificationsAreSentToEmail + ' ' + primaryEmail?.value | ||
" | ||
(selectionChange)="makePrimary($event.value)" | ||
[ngClass]="{ | ||
'disabled-select-notifications-email': !hasVerifiedEmailAddress() | ||
}" | ||
[disabled]="!hasVerifiedEmailAddress()" | ||
placeholder=" {{ primaryEmail?.value }}" | ||
[(value)]="primaryEmail" | ||
class="orc-font-body-small" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/app/cdk/top-bar-verification-email/top-bar-verification-email.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,11 +7,14 @@ side-bar.verifiedEmail=Verified email address | |
side-bar.emailCanNotBeDuplicated=Email can not be duplicated | ||
side-bar.noOtherEmails=You haven’t added any other email addresses yet. | ||
side-bar.invalidEmailFormat=Invalid email format | ||
side-bar.invalidEmailErrorMessage=Please enter a valid email address, for example [email protected] | ||
side-bar.pleaseVerify=Please verify your primary email address! | ||
side-bar.pleaseVerifyWarning=Please verify your email addresses | ||
side-bar.verifyToAccessOrcidFeatures=To access all of ORCID’s editing features you must verify at least one email address. Until then you will only be able to manage | ||
side-bar.names=names | ||
side-bar.and=and | ||
side-bar.emailAddress=Email address | ||
side-bar.newEmailAddress=New email address | ||
side-bar.emailAddresses=email addresses | ||
side-bar.emailAddressesUppercase=Email addresses | ||
side-bar.inYourOrcidRecord=in your ORCID record. | ||
|
@@ -92,3 +95,5 @@ side-bar.ariaLabelOtherEmailPrivate=Set other email visibility to Only Me | |
side-bar.ariaLabelEmailPublic=Set email visibility to Everyone | ||
side-bar.ariaLabelEmailTrustedParties=Set email visibility to Trusted Parties | ||
side-bar.ariaLabelEmailPrivate=Set email visibility to Only Me | ||
side-bar.ariaOpenAccountSettings=Open your ORCID account settings | ||
side-bar.notificationsAreSentToEmail=Notifications are sent to |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters