diff --git a/src/app/@core/utils/ab.service.ts b/src/app/@core/utils/ab.service.ts index 8388ad6c..a1e785c1 100644 --- a/src/app/@core/utils/ab.service.ts +++ b/src/app/@core/utils/ab.service.ts @@ -14,6 +14,7 @@ export class AbService { static readonly VARIANT_HIGHLIGHT_HIRE = 'highlight-hire'; static readonly VARIANT_DEVELOPERS_HIRE = 'developers-hire'; static readonly VARIANT_SOLUTION_HIRE = 'solution-hire'; + static readonly VARIANT_HIDE_CALL_ACTION = 'call-action-hide'; // static readonly VARIANT_BANNER_HIRE = 'banner-hire'; private static readonly EVENT_NAME = 'ab-variant'; diff --git a/src/app/pages/dashboard/dashboard.component.html b/src/app/pages/dashboard/dashboard.component.html index fe99632c..5c310958 100644 --- a/src/app/pages/dashboard/dashboard.component.html +++ b/src/app/pages/dashboard/dashboard.component.html @@ -1,4 +1,4 @@ -
+
this.alive)) .subscribe(theme => { @@ -91,6 +94,12 @@ export class DashboardComponent implements OnDestroy { }); } + ngOnInit() { + this.abService.onAbEvent(AbService.VARIANT_HIDE_CALL_ACTION) + .pipe(takeWhile(() => this.alive)) + .subscribe(() => this.showCallAction = false ); + } + ngOnDestroy() { this.alive = false; } diff --git a/src/app/pages/e-commerce/e-commerce.component.html b/src/app/pages/e-commerce/e-commerce.component.html index ba307245..caa60d81 100644 --- a/src/app/pages/e-commerce/e-commerce.component.html +++ b/src/app/pages/e-commerce/e-commerce.component.html @@ -1,4 +1,4 @@ -
+
this.alive)) + .subscribe(() => this.showCallAction = false ); + } + + ngOnDestroy() { + this.alive = false; + } + }