diff --git a/libs/ui/src/lib/benchmark/benchmark-detail-dialog/benchmark-detail-dialog.html b/libs/ui/src/lib/benchmark/benchmark-detail-dialog/benchmark-detail-dialog.html index 3e96c32ec..23196f162 100644 --- a/libs/ui/src/lib/benchmark/benchmark-detail-dialog/benchmark-detail-dialog.html +++ b/libs/ui/src/lib/benchmark/benchmark-detail-dialog/benchmark-detail-dialog.html @@ -2,7 +2,7 @@ mat-dialog-title position="center" [deviceType]="data.deviceType" - [title]="assetProfile?.name" + [title]="assetProfile?.name ?? assetProfile?.symbol" (closeButtonClicked)="onClose()" /> diff --git a/libs/ui/src/lib/benchmark/benchmark.component.html b/libs/ui/src/lib/benchmark/benchmark.component.html index 1f1733a71..ec92554de 100644 --- a/libs/ui/src/lib/benchmark/benchmark.component.html +++ b/libs/ui/src/lib/benchmark/benchmark.component.html @@ -2,15 +2,7 @@ Index - {{ element?.name }} + {{ element?.name }} @@ -118,5 +110,15 @@ - + diff --git a/libs/ui/src/lib/benchmark/benchmark.component.ts b/libs/ui/src/lib/benchmark/benchmark.component.ts index bcbd26085..4dd4aa079 100644 --- a/libs/ui/src/lib/benchmark/benchmark.component.ts +++ b/libs/ui/src/lib/benchmark/benchmark.component.ts @@ -84,6 +84,12 @@ export class GfBenchmarkComponent implements OnChanges, OnDestroy { } } + public onOpenBenchmarkDialog({ dataSource, symbol }: UniqueAsset) { + this.router.navigate([], { + queryParams: { dataSource, symbol, benchmarkDetailDialog: true } + }); + } + public ngOnDestroy() { this.unsubscribeSubject.next(); this.unsubscribeSubject.complete();