From b8a4ad82e569b1d7524e6a31053b76bea359230e Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Mon, 18 May 2026 21:55:15 +0200 Subject: [PATCH] Add icon column --- .../home-watchlist/home-watchlist.html | 1 + .../lib/benchmark/benchmark.component.html | 33 ++++++++++++------- .../src/lib/benchmark/benchmark.component.ts | 4 +++ 3 files changed, 27 insertions(+), 11 deletions(-) diff --git a/apps/client/src/app/components/home-watchlist/home-watchlist.html b/apps/client/src/app/components/home-watchlist/home-watchlist.html index a17259000..c7c9a9c4b 100644 --- a/apps/client/src/app/components/home-watchlist/home-watchlist.html +++ b/apps/client/src/app/components/home-watchlist/home-watchlist.html @@ -14,6 +14,7 @@ [deviceType]="deviceType()" [hasPermissionToDeleteItem]="hasPermissionToDeleteWatchlistItem" [locale]="user?.settings?.locale || undefined" + [showIcon]="true" [user]="user" (itemDeleted)="onWatchlistItemDeleted($event)" /> diff --git a/libs/ui/src/lib/benchmark/benchmark.component.html b/libs/ui/src/lib/benchmark/benchmark.component.html index ab0d4fb6f..144101598 100644 --- a/libs/ui/src/lib/benchmark/benchmark.component.html +++ b/libs/ui/src/lib/benchmark/benchmark.component.html @@ -7,11 +7,22 @@ matSortDirection="asc" [dataSource]="dataSource" > - - + + + + + + + + + Name - +
{{ element?.name }}
@@ -26,14 +37,14 @@ 50-Day Trend
@@ -55,14 +66,14 @@ 200-Day Trend
@@ -84,14 +95,14 @@ Last All Time High
@@ -109,7 +120,7 @@ @@ -118,7 +129,7 @@ > from ATH - + @if (isNumber(element?.performances?.allTimeHigh?.performancePercent)) { (); public readonly hasPermissionToDeleteItem = input(); public readonly locale = input(getLocale()); + public readonly showIcon = input(false); public readonly showSymbol = input(true); public readonly user = input(); @@ -75,6 +78,7 @@ export class GfBenchmarkComponent { protected readonly dataSource = new MatTableDataSource([]); protected readonly displayedColumns = computed(() => { return [ + ...(this.showIcon() ? ['icon'] : []), 'name', ...(this.user()?.settings?.isExperimentalFeatures ? ['trend50d', 'trend200d']