diff --git a/CHANGELOG.md b/CHANGELOG.md index ccbad4336..5ee17c237 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,19 @@ +## v2.102.9 - 2024-07-24 + +[Full Changelog](https://github.com/ORCID/orcid-angular/compare/v2.102.8...v2.102.9) + +## v2.102.8 - 2024-07-24 + +[Full Changelog](https://github.com/ORCID/orcid-angular/compare/v2.102.7...v2.102.8) + +## v2.102.7 - 2024-07-24 + +[Full Changelog](https://github.com/ORCID/orcid-angular/compare/v2.102.6...v2.102.7) + +## v2.102.6 - 2024-07-24 + +[Full Changelog](https://github.com/ORCID/orcid-angular/compare/v2.102.5...v2.102.6) + ## v2.102.5 - 2024-07-23 [Full Changelog](https://github.com/ORCID/orcid-angular/compare/v2.102.4...v2.102.5) diff --git a/src/app/account-settings/components/settings-defaults-email-frequency/settings-defaults-email-frequency.component.html b/src/app/account-settings/components/settings-defaults-email-frequency/settings-defaults-email-frequency.component.html index 87d2e840b..ffe602b3d 100644 --- a/src/app/account-settings/components/settings-defaults-email-frequency/settings-defaults-email-frequency.component.html +++ b/src/app/account-settings/components/settings-defaults-email-frequency/settings-defaults-email-frequency.component.html @@ -51,6 +51,7 @@

@@ -77,6 +78,7 @@

diff --git a/src/app/account-settings/components/settings-defaults-email-frequency/settings-defaults-email-frequency.component.scss b/src/app/account-settings/components/settings-defaults-email-frequency/settings-defaults-email-frequency.component.scss index 96e8c13f8..aa910dd4b 100644 --- a/src/app/account-settings/components/settings-defaults-email-frequency/settings-defaults-email-frequency.component.scss +++ b/src/app/account-settings/components/settings-defaults-email-frequency/settings-defaults-email-frequency.component.scss @@ -20,7 +20,7 @@ mat-form-field { } label { - margin-bottom: 8px; + margin-bottom: 2px; } .italic { @@ -51,9 +51,22 @@ mat-checkbox { justify-content: space-between; max-width: 100%; .email-container { + min-width: 0; display: flex; gap: 16px; align-items: center; + div { + min-width: 0; + line-height: 21px; + } + label, + caption { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + text-align: left; + display: block !important; + } label { font-weight: bold; } 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 34ce31fbf..5cdfc1082 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 @@ -250,18 +250,21 @@

>your ORCID account settings.

-
+ -
+ diff --git a/src/app/cdk/side-bar/modals/modal-email/modal-email.component.scss b/src/app/cdk/side-bar/modals/modal-email/modal-email.component.scss index 83c31aba7..8a9006538 100644 --- a/src/app/cdk/side-bar/modals/modal-email/modal-email.component.scss +++ b/src/app/cdk/side-bar/modals/modal-email/modal-email.component.scss @@ -104,14 +104,8 @@ mat-form-field { } .select-notifications-email { - padding: 0 8px 0 8px; - align-items: center; - display: flex; height: 38px; max-width: 402px; - width: auto; - border: solid 1px; - border-radius: 0 5px 5px 0; } .current-notification-email { font-weight: bold; diff --git a/src/app/cdk/side-bar/modals/modal-email/modal-email.component.scss-theme.scss b/src/app/cdk/side-bar/modals/modal-email/modal-email.component.scss-theme.scss index 998cf07b3..20ea5a02e 100644 --- a/src/app/cdk/side-bar/modals/modal-email/modal-email.component.scss-theme.scss +++ b/src/app/cdk/side-bar/modals/modal-email/modal-email.component.scss-theme.scss @@ -29,10 +29,11 @@ background: mat.get-color-from-palette($background, 'ui-background-light'); } + ::ng-deep .mat-option-text { + color: black; + } + .select-notifications-email { - ::ng-deep .mat-select-placeholder { - color: black; - } color: rgba(0, 0, 0, 0.12); } 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 6f25d9704..6bc34acee 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 @@ -247,12 +247,17 @@ export class ModalEmailComponent implements OnInit, OnDestroy { } setNextEmailAsPrimary() { - const verifiedEmails = this.emails.filter((email) => email.verified) - const currentIndex = verifiedEmails.findIndex( + let emails = this.emails.filter((email) => email.verified) + // If there are no verified emails left, set any next email as primary + // we're counting the one being deleted + if (emails.length <= 1) { + emails = this.emails + } + const currentIndex = emails.findIndex( (value) => value.putCode === this.primaryEmail.putCode ) - const nextIndex = (currentIndex + 1) % verifiedEmails.length - const nextEmail = verifiedEmails[nextIndex] + const nextIndex = (currentIndex + 1) % emails.length + const nextEmail = emails[nextIndex] this.makePrimary(nextEmail) } @@ -402,7 +407,6 @@ export class ModalEmailComponent implements OnInit, OnDestroy { if (controlKey === this.primaryEmail?.putCode) { this.setNextEmailAsPrimary() } - const i = this.emails.findIndex((value) => value.putCode === controlKey) this.emails.splice(i, 1) this.emailsForm.removeControl(controlKey) diff --git a/src/app/cdk/side-bar/side-bar/side-bar.component.html b/src/app/cdk/side-bar/side-bar/side-bar.component.html index 1da483eed..7a3cabaf2 100644 --- a/src/app/cdk/side-bar/side-bar/side-bar.component.html +++ b/src/app/cdk/side-bar/side-bar/side-bar.component.html @@ -55,7 +55,6 @@

Emails

[visibility]=" isPublicRecord ? '' : email.verified ? email.visibility : 'PRIVATE' " - [bold]="email.primary" [isPublicRecord]="isPublicRecord" >{{ email.value }}