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
parent
commit
53ce901b08
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 7
      libs/ui/src/lib/top-holdings/top-holdings.component.html
  2. 4
      libs/ui/src/lib/top-holdings/top-holdings.component.ts

7
libs/ui/src/lib/top-holdings/top-holdings.component.html

@ -121,7 +121,12 @@
*matRowDef="let row; columns: displayedColumns" *matRowDef="let row; columns: displayedColumns"
mat-row mat-row
[class.cursor-pointer]="row.position" [class.cursor-pointer]="row.position"
(click)="onClickHolding(row.position)" (click)="
onClickHolding({
dataSource: row.position.assetProfile.dataSource,
symbol: row.position.assetProfile.symbol
})
"
></tr> ></tr>
<tr <tr
*matFooterRowDef="displayedColumns" *matFooterRowDef="displayedColumns"

4
libs/ui/src/lib/top-holdings/top-holdings.component.ts

@ -84,8 +84,8 @@ export class GfTopHoldingsComponent implements OnChanges {
} }
} }
public onClickHolding(assetProfileIdentifier: AssetProfileIdentifier) { public onClickHolding({ dataSource, symbol }: AssetProfileIdentifier) {
this.holdingClicked.emit(assetProfileIdentifier); this.holdingClicked.emit({ dataSource, symbol });
} }
public onShowAllHoldings() { public onShowAllHoldings() {

Loading…
Cancel
Save