From 2b631d6e6b1feff758394eddff0ec1cf783fb199 Mon Sep 17 00:00:00 2001 From: Thomas <4159106+dtslvr@users.noreply.github.com> Date: Wed, 20 Oct 2021 20:09:23 +0200 Subject: [PATCH] Accentuate all time high and all time low --- apps/api/src/app/portfolio/portfolio.service.ts | 8 ++++++-- .../portfolio-performance.component.html | 10 ++++++++-- .../lib/interfaces/portfolio-performance.interface.ts | 2 ++ 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/apps/api/src/app/portfolio/portfolio.service.ts b/apps/api/src/app/portfolio/portfolio.service.ts index 4f182b4c2..b5656ab3a 100644 --- a/apps/api/src/app/portfolio/portfolio.service.ts +++ b/apps/api/src/app/portfolio/portfolio.service.ts @@ -639,7 +639,9 @@ export class PortfolioService { currentGrossPerformancePercent: 0, currentNetPerformance: 0, currentNetPerformancePercent: 0, - currentValue: 0 + currentValue: 0, + isAllTimeHigh: false, + isAllTimeLow: false } }; } @@ -672,7 +674,9 @@ export class PortfolioService { currentGrossPerformancePercent, currentNetPerformance, currentNetPerformancePercent, - currentValue + currentValue, + isAllTimeHigh: true, // TODO + isAllTimeLow: false // TODO } }; } 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 42aa5a683..025a9de96 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 @@ -1,5 +1,11 @@