diff --git a/src/app/cdk/side-bar/modals/modal-email/modal-email.component.html b/src/app/cdk/side-bar/modals/modal-email/modal-email.component.html index 37a70cca6..15ecc86ac 100644 --- a/src/app/cdk/side-bar/modals/modal-email/modal-email.component.html +++ b/src/app/cdk/side-bar/modals/modal-email/modal-email.component.html @@ -1,9 +1,16 @@ Emails & domains + Emails @@ -21,7 +30,11 @@ (click)="closeEvent()" i18n="@@shared.cancel" id="cancel-emails-button" - [attr.aria-label]="ariaLabelCancel" + [attr.aria-label]=" + emailDomainsTogglz && !loadingTogglz + ? ariaLabelCancel + : ariaLabelCancelOld + " > Cancel diff --git a/src/app/cdk/side-bar/modals/modal-email/modal-email.component.ts b/src/app/cdk/side-bar/modals/modal-email/modal-email.component.ts index 008bd67d4..b3533cd0c 100644 --- a/src/app/cdk/side-bar/modals/modal-email/modal-email.component.ts +++ b/src/app/cdk/side-bar/modals/modal-email/modal-email.component.ts @@ -49,11 +49,14 @@ export class ModalEmailComponent implements OnInit, OnDestroy { ariaLabelKnowledgeBase = $localize`:@@side-bar.ariaLabelOrcidTermsOfUseBase:ORCID knowledge base (Opens in a new tab)` ariaLabelKnowledgeSupport = $localize`:@@side-bar.ariaLabelOrcidTermsSupport:ORCID support page (Opens in a new tab)` ariaLabelOrcidTermsOfUseLink = $localize`:@@side-bar.ariaLabelOrcidTermsOfUseLink:ORCID terms of use (Opens in a new tab)` + ariaLabelSaveOld = $localize`:@@side-bar.ariaLabelEmailSave:Save changes to Emails` ariaLabelSave = $localize`:@@side-bar.ariaLabelEmailAndDomainsSave:Save changes to Emails & domains` ariaLabelNotificationsAreSentToEmail = $localize`:@@side-bar.notificationsAreSentToEmail:Notifications are sent to` + ariaLabelCancelOld = $localize`:@@side-bar.ariaLabelEmailCancel:Cancel changes and close Emails` ariaLabelCancel = $localize`:@@side-bar.ariaLabelEmailAndDomainsCancel:Cancel changes and close Emails & domains` ariaLabelDelete = $localize`:@@side-bar.ariaLabelEmailDelete:Delete Email` ariaLabelClose = $localize`:@@side-bar.ariaLabelEmailAndDomainsClose:Close Emails & domains` + ariaLabelCloseOld = $localize`:@@side-bar.ariaLabelEmailClose:Close Emails` ariaLabelEmailAddress = $localize`:@@side-bar.emailAddress:Email address` ariaLabelNewEmailAddress = $localize`:@@side-bar.newEmailAddress:New email address` ariaLabelOtherEmailAddresses = $localize`:@@side-bar.otherEmails:Other email addresses`