From a04613ef79da70d434d16dbd35d524ae4cb00517 Mon Sep 17 00:00:00 2001 From: andrej romanov <50377758+auumgn@users.noreply.github.com> Date: Tue, 15 Oct 2024 21:44:39 +0300 Subject: [PATCH] change email verification in the side bar --- .../side-bar/side-bar/side-bar.component.html | 86 ++++++++++++++----- .../side-bar/side-bar/side-bar.component.scss | 9 +- .../side-bar/side-bar/side-bar.component.ts | 2 + .../record-emails/record-emails.service.ts | 4 +- .../record-public-side-bar.service.ts | 8 +- src/app/core/utils.ts | 14 +++ 6 files changed, 97 insertions(+), 26 deletions(-) create mode 100644 src/app/core/utils.ts 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 d337d067c1..02310ddd27 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 @@ -37,7 +37,6 @@ [isPublicRecord]="isPublicRecord" [elements]="userRecord?.emails?.emails" [editModalComponent]="modalEmailComponent" - [customControls]="isPublicRecord && emailDomainsTogglz && !loadingTogglz" [email]="true" [type]="'side-bar'" class="side-bar" @@ -75,9 +74,18 @@ isPublicRecord ? '' : email.verified ? email.visibility : 'PRIVATE' " [isPublicRecord]="isPublicRecord" - >{{ email.value }} + >{{ email.value }} + + @@ -97,28 +105,53 @@ emailDomainsTogglz && !loadingTogglz " - [ngClass]="{ - 'double-app-panel-data': - userRecord?.emails?.emailDomains && - userRecord?.emails?.emailDomains?.length > 0 - }" >

Verified email addresses

- check_circle -
- {{ entry.value }} + > +
+ check_circle + + +
+ {{ email.value }} +
-
+ + @@ -136,18 +169,29 @@