From 8d70e1c0bce9d279c63ff8ad9685c6875d8a9b2e Mon Sep 17 00:00:00 2001 From: KenTandrian Date: Tue, 7 Jul 2026 08:00:52 +0700 Subject: [PATCH] feat(client): migrate errors to input signal --- .../portfolio-performance.component.html | 2 +- .../portfolio-performance.component.ts | 9 ++++++--- 2 files changed, 7 insertions(+), 4 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 e8bcfea0e..611183ed7 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,7 +1,7 @@
- @if (errors?.length > 0 && !isLoading) { + @if (errors()?.length > 0 && !isLoading) { (); + private readonly value = viewChild.required>('value'); @@ -84,13 +86,14 @@ export class GfPortfolioPerformanceComponent implements OnChanges { } protected onShowErrors() { - if (!this.errors?.length) { + const errors = this.errors(); + if (!errors?.length) { return; } const errorMessageParts: string[] = []; - for (const error of this.errors) { + for (const error of errors) { errorMessageParts.push(`${error.symbol} (${error.dataSource})`); }