|
|
|
@ -26,6 +26,7 @@ export class HoldingsTableComponent implements OnChanges, OnDestroy, OnInit {
|
|
|
|
|
@Input() baseCurrency: string;
|
|
|
|
|
@Input() deviceType: string;
|
|
|
|
|
@Input() hasPermissionToCreateActivity: boolean;
|
|
|
|
|
@Input() hasPermissionToOpenDetails = true;
|
|
|
|
|
@Input() hasPermissionToShowValues = true;
|
|
|
|
|
@Input() holdings: PortfolioPosition[];
|
|
|
|
|
@Input() locale: string;
|
|
|
|
@ -68,10 +69,12 @@ export class HoldingsTableComponent implements OnChanges, OnDestroy, OnInit {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public onOpenPositionDialog({ dataSource, symbol }: UniqueAsset): void {
|
|
|
|
|
this.router.navigate([], {
|
|
|
|
|
queryParams: { dataSource, symbol, positionDetailDialog: true }
|
|
|
|
|
});
|
|
|
|
|
public onOpenPositionDialog({ dataSource, symbol }: UniqueAsset) {
|
|
|
|
|
if (this.hasPermissionToOpenDetails) {
|
|
|
|
|
this.router.navigate([], {
|
|
|
|
|
queryParams: { dataSource, symbol, positionDetailDialog: true }
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public onShowAllPositions() {
|
|
|
|
|