Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Feature/add symbol to benchmark component (#5530)

Batwam5bc5f6a2da5a
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 732d37680a..ee1318bbf3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
+- Added the symbol to the benchmark component
- Added an option to configure the account column of the activities table component
### Changed
diff --git a/apps/client/src/app/components/home-market/home-market.html b/apps/client/src/app/components/home-market/home-market.html
index 9ea2863013..fc7230d350 100644
--- a/apps/client/src/app/components/home-market/home-market.html
+++ b/apps/client/src/app/components/home-market/home-market.html
@@ -34,6 +34,7 @@
[benchmarks]="benchmarks"
[deviceType]="deviceType"
[locale]="user?.settings?.locale || undefined"
+ [showSymbol]="false"
[user]="user"
/>
@if (benchmarks?.length > 0) {
diff --git a/apps/client/src/app/components/markets/markets.html b/apps/client/src/app/components/markets/markets.html
index 90ddbba063..38234a7850 100644
--- a/apps/client/src/app/components/markets/markets.html
+++ b/apps/client/src/app/components/markets/markets.html
@@ -43,6 +43,7 @@
[benchmarks]="benchmarks"
[deviceType]="deviceType"
[locale]="user?.settings?.locale || undefined"
+ [showSymbol]="false"
[user]="user"
/>
@if (benchmarks?.length > 0) {
diff --git a/libs/ui/src/lib/benchmark/benchmark.component.html b/libs/ui/src/lib/benchmark/benchmark.component.html
index 8df8417f17..2b75e5672f 100644
--- a/libs/ui/src/lib/benchmark/benchmark.component.html
+++ b/libs/ui/src/lib/benchmark/benchmark.component.html
@@ -12,7 +12,14 @@
Name
</th>
<td *matCellDef="let element" class="px-2 text-nowrap" mat-cell>
- {{ element?.name }}
+ <div class="text-truncate">
+ {{ element?.name }}
+ </div>
+ @if (showSymbol) {
+ <div>
+ <small class="text-muted">{{ element?.symbol }}</small>
+ </div>
+ }
</td>
</ng-container>
diff --git a/libs/ui/src/lib/benchmark/benchmark.component.ts b/libs/ui/src/lib/benchmark/benchmark.component.ts
index d0b2c94fdf..3af9bc6745 100644
--- a/libs/ui/src/lib/benchmark/benchmark.component.ts
+++ b/libs/ui/src/lib/benchmark/benchmark.component.ts
@@ -62,6 +62,7 @@ export class GfBenchmarkComponent implements OnChanges, OnDestroy {
@Input() deviceType: string;
@Input() hasPermissionToDeleteItem: boolean;
@Input() locale = getLocale();
+ @Input() showSymbol = true;
@Input() user: User;
@Output() itemDeleted = new EventEmitter<AssetProfileIdentifier>();