Browse Source
Task/refactor deprecated portfolio position attributes in top holdings component (#6778)
Refactor deprecated portfolio position attributes to asset profile
pull/6777/head
Thomas Kaul
1 week ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
8 additions and
3 deletions
-
libs/ui/src/lib/top-holdings/top-holdings.component.html
-
libs/ui/src/lib/top-holdings/top-holdings.component.ts
|
|
|
@ -121,7 +121,12 @@ |
|
|
|
*matRowDef="let row; columns: displayedColumns" |
|
|
|
mat-row |
|
|
|
[class.cursor-pointer]="row.position" |
|
|
|
(click)="onClickHolding(row.position)" |
|
|
|
(click)=" |
|
|
|
onClickHolding({ |
|
|
|
dataSource: row.position.assetProfile.dataSource, |
|
|
|
symbol: row.position.assetProfile.symbol |
|
|
|
}) |
|
|
|
" |
|
|
|
></tr> |
|
|
|
<tr |
|
|
|
*matFooterRowDef="displayedColumns" |
|
|
|
|
|
|
|
@ -84,8 +84,8 @@ export class GfTopHoldingsComponent implements OnChanges { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public onClickHolding(assetProfileIdentifier: AssetProfileIdentifier) { |
|
|
|
this.holdingClicked.emit(assetProfileIdentifier); |
|
|
|
public onClickHolding({ dataSource, symbol }: AssetProfileIdentifier) { |
|
|
|
this.holdingClicked.emit({ dataSource, symbol }); |
|
|
|
} |
|
|
|
|
|
|
|
public onShowAllHoldings() { |
|
|
|
|