From 70b94c01a9b8a27a16abb7a0c763a58b3a2e1412 Mon Sep 17 00:00:00 2001 From: Thomas <4159106+dtslvr@users.noreply.github.com> Date: Wed, 20 Oct 2021 21:04:52 +0200 Subject: [PATCH] Integrate isAllTimeHigh and isAllTimeLow --- .../portfolio-performance.component.html | 4 ++-- .../portfolio-performance/portfolio-performance.component.ts | 2 ++ apps/client/src/app/pages/home/home-page.component.ts | 4 ++++ apps/client/src/app/pages/home/home-page.html | 2 ++ apps/client/src/app/pages/zen/zen-page.component.ts | 4 ++++ apps/client/src/app/pages/zen/zen-page.html | 2 ++ 6 files changed, 16 insertions(+), 2 deletions(-) diff --git a/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.html b/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.html index 025a9de96..27b0371b1 100644 --- a/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.html +++ b/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.html @@ -2,8 +2,8 @@
diff --git a/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts b/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts index 697941b70..8c69eea1d 100644 --- a/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts +++ b/apps/client/src/app/components/portfolio-performance/portfolio-performance.component.ts @@ -19,6 +19,8 @@ import { isNumber } from 'lodash'; }) export class PortfolioPerformanceComponent implements OnChanges, OnInit { @Input() baseCurrency: string; + @Input() isAllTimeHigh: boolean; + @Input() isAllTimeLow: boolean; @Input() isLoading: boolean; @Input() locale: string; @Input() performance: PortfolioPerformance; diff --git a/apps/client/src/app/pages/home/home-page.component.ts b/apps/client/src/app/pages/home/home-page.component.ts index 97ea3fa6a..43e7f9cc6 100644 --- a/apps/client/src/app/pages/home/home-page.component.ts +++ b/apps/client/src/app/pages/home/home-page.component.ts @@ -55,6 +55,8 @@ export class HomePageComponent implements OnDestroy, OnInit { ]; public deviceType: string; public fearAndGreedIndex: number; + public isAllTimeHigh: boolean; + public isAllTimeLow: boolean; public hasImpersonationId: boolean; public hasPermissionToAccessFearAndGreedIndex: boolean; public hasPermissionToCreateOrder: boolean; @@ -172,6 +174,8 @@ export class HomePageComponent implements OnDestroy, OnInit { value: chartDataItem.value }; }); + this.isAllTimeHigh = chartData.isAllTimeHigh; + this.isAllTimeLow = chartData.isAllTimeLow; this.changeDetectorRef.markForCheck(); }); diff --git a/apps/client/src/app/pages/home/home-page.html b/apps/client/src/app/pages/home/home-page.html index e37e0c4b1..b21fbb3f6 100644 --- a/apps/client/src/app/pages/home/home-page.html +++ b/apps/client/src/app/pages/home/home-page.html @@ -54,6 +54,8 @@