From 8b14aaf325c4c18691be36a89dca882b945d8eb0 Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Thu, 6 Jul 2023 15:28:53 +0300 Subject: [PATCH] [Monitor & Library | develop]: [Bug fix] Refactor code for showing help button or not. 1. quick-contact.service.ts: Initialize display to true (assume it is not intersecting, otherwise in pages without this section, it can't be initialized correctly). 2. home.component.ts: Removed field "showQuickContact" | In constructor set quickContactService.setDisplay(false) | Refactor intersectionObserver. 3. app-routing.module.ts: In "contact-us" route, set data: {hasQuickContact: false}. 4. app.component.ts: Updated checks for | Added public showQuickContact: boolean; to be initialized by layoutService.hasQuickContact. --- sharedComponents/quick-contact/quick-contact.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sharedComponents/quick-contact/quick-contact.service.ts b/sharedComponents/quick-contact/quick-contact.service.ts index c31a742c..0ddcdcc7 100644 --- a/sharedComponents/quick-contact/quick-contact.service.ts +++ b/sharedComponents/quick-contact/quick-contact.service.ts @@ -5,7 +5,7 @@ import { BehaviorSubject, Observable } from "rxjs"; providedIn: "root" }) export class QuickContactService { - private display: BehaviorSubject = new BehaviorSubject(false); + private display: BehaviorSubject = new BehaviorSubject(true); public get isDisplayed(): Observable { return this.display.asObservable();