From d91642b7481dc0fb82a2821d749006889377867d Mon Sep 17 00:00:00 2001
From: andrej romanov <50377758+auumgn@users.noreply.github.com>
Date: Thu, 25 Jul 2024 18:48:31 +0300
Subject: [PATCH 1/2] thank you for registering should only show after
registration
---
.../top-bar-verification-email.component.html | 2 +-
.../top-bar-verification-email.component.ts | 4 +---
src/app/record/components/top-bar/top-bar.component.html | 1 +
3 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/app/cdk/top-bar-verification-email/top-bar-verification-email.component.html b/src/app/cdk/top-bar-verification-email/top-bar-verification-email.component.html
index d0c0c761f3..f5645d00b9 100644
--- a/src/app/cdk/top-bar-verification-email/top-bar-verification-email.component.html
+++ b/src/app/cdk/top-bar-verification-email/top-bar-verification-email.component.html
@@ -1,5 +1,5 @@
= new Subject
()
@Input() emailVerified: boolean
+ @Input() justRegistered: boolean
@Input() messageType: 'forCredentials' | 'forManualEditing' =
'forManualEditing'
@@ -45,9 +46,6 @@ export class TopBarVerificationEmailComponent implements OnInit, OnDestroy {
const primaryEmail = userRecord?.emails?.emails?.filter(
(email) => email.primary
)[0]
- if (!primaryEmail?.verified) {
- this.primaryEmail = primaryEmail?.value
- }
})
}
diff --git a/src/app/record/components/top-bar/top-bar.component.html b/src/app/record/components/top-bar/top-bar.component.html
index c112dfb464..a2bd997aca 100644
--- a/src/app/record/components/top-bar/top-bar.component.html
+++ b/src/app/record/components/top-bar/top-bar.component.html
@@ -9,6 +9,7 @@
From b092299b87ba85ad5b90f1f4c45cc573c522d846 Mon Sep 17 00:00:00 2001
From: andrej romanov <50377758+auumgn@users.noreply.github.com>
Date: Thu, 25 Jul 2024 18:50:02 +0300
Subject: [PATCH 2/2] restore some old logic
---
.../top-bar-verification-email.component.ts | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/app/cdk/top-bar-verification-email/top-bar-verification-email.component.ts b/src/app/cdk/top-bar-verification-email/top-bar-verification-email.component.ts
index c053e187da..6361bd6635 100644
--- a/src/app/cdk/top-bar-verification-email/top-bar-verification-email.component.ts
+++ b/src/app/cdk/top-bar-verification-email/top-bar-verification-email.component.ts
@@ -46,6 +46,9 @@ export class TopBarVerificationEmailComponent implements OnInit, OnDestroy {
const primaryEmail = userRecord?.emails?.emails?.filter(
(email) => email.primary
)[0]
+ if (!primaryEmail?.verified) {
+ this.primaryEmail = primaryEmail?.value
+ }
})
}