From 0697beffee71eb0db13014c4b642463edc252546 Mon Sep 17 00:00:00 2001 From: Angel Montenegro Date: Thu, 22 Aug 2024 08:41:18 -0600 Subject: [PATCH] Link to the email domains page (#2328) * Link to the email domains page * Check the email domain list as well * fix testign --------- Co-authored-by: Leonardo Mendoza Fernadez --- .../modal-email/modal-email.component.html | 2 +- .../side-bar/side-bar/side-bar.component.html | 25 +++++++++++------- .../side-bar/side-bar/side-bar.component.ts | 7 ++--- src/app/shared/utils/record.util.ts | 2 ++ .../summary/.summary.en.properties.swp | Bin 0 -> 12288 bytes 5 files changed, 20 insertions(+), 16 deletions(-) create mode 100644 src/locale/properties/summary/.summary.en.properties.swp 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 598a87850..8508a2fc5 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 @@ -249,7 +249,7 @@

address. @@ -61,13 +63,13 @@

0 && + userRecord?.emails?.emails?.length > 0 && !isPublicRecord && emailDomainsTogglz && !loadingTogglz @@ -139,7 +144,7 @@ >

Email addresses

{{ email.value }} @@ -147,7 +152,7 @@

Email addresses

{ + this.userRecord.emails?.emails?.forEach((email) => { const professionalDomain = this.userRecord.emails.emailDomains?.find( (emailDomain) => email.value.split('@')[1] === emailDomain.value ) @@ -163,7 +162,6 @@ export class SideBarComponent implements OnInit, OnDestroy { if (professionalDomain) { if (email.visibility === 'PUBLIC') { this.publicEmailList.push(email) - domainsToExclude.push(professionalDomain) } else if ( professionalDomain.visibility === 'PUBLIC' && !this.publicDomainList.includes(professionalDomain) @@ -176,8 +174,7 @@ export class SideBarComponent implements OnInit, OnDestroy { }) this.userRecord.emails?.emailDomains?.forEach((emailDomain) => { if ( - emailDomain.visibility === 'PUBLIC' && - !domainsToExclude.includes(emailDomain) + emailDomain.visibility === 'PUBLIC' ) { this.publicDomainList.push(emailDomain) } diff --git a/src/app/shared/utils/record.util.ts b/src/app/shared/utils/record.util.ts index 6013e9052..b18208779 100644 --- a/src/app/shared/utils/record.util.ts +++ b/src/app/shared/utils/record.util.ts @@ -80,6 +80,8 @@ export class RecordUtil { if ( (userRecord?.emails?.emails && (!isPublicRecord || userRecord.emails.emails.length > 0)) || + (userRecord?.emails?.emailDomains && + (!isPublicRecord || userRecord.emails.emailDomains.length > 0)) || (userRecord?.website?.websites && (!isPublicRecord || userRecord.website.websites.length > 0)) || (userRecord?.externalIdentifier?.externalIdentifiers && diff --git a/src/locale/properties/summary/.summary.en.properties.swp b/src/locale/properties/summary/.summary.en.properties.swp new file mode 100644 index 0000000000000000000000000000000000000000..32782ebc82a3946f695b87a75d0aa3ebd4789698 GIT binary patch literal 12288 zcmeHN&yO256!xx!D3lgN552l@ZIVJIDh_iPnn^oqHd!UvthgY&GtS0jG9KBJEU7B` zmsBbzKuDbV1CS60ByPZo0~an_xFR9mj3>5dHoG?tR37QmjNkj-^YiB)(Q18iXBr;h z_uF?6JZ~WM^Zr+}C*P0vZ<0Nfw3jrE`D0S}E_wQtr$oeDwhl=20q2X>q2TR=M%kCOZ0jI#_ z3S2{X-+iat>Tkbw3*UJ2=yJOAIt82pP64NYQ@|!s|Y;6_L0jGddz$xGqa0>iq3RKtf+G|G7!kDHxn=vY+H-$DPNrIU%VwNJC50?XHR7wVy z1`|KZ*_stM{Y)s_@6&!vG~rwtO2vp41=z7*#6nq{0lifkv-H$r&y=M}Jmz9yvCfKS zljF~3EMX*vQCL)BS?!1!OXJ}xKj4D;Cw!HUXv9T4F7GxLWAA|q{fk{DuQ4}1k zlmn91P&ria##5;(+D4P)oS)gfY`ig8>PZcI4%1aYVF?v&+qlZe&|nNY^DTzI>&q^BHEZESsHa`TK|e{CZIuV RY;bj+So>RN%(<6y^e^NNNlyR( literal 0 HcmV?d00001