|
|
|
@ -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,11 +69,13 @@ export class HoldingsTableComponent implements OnChanges, OnDestroy, OnInit {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public onOpenPositionDialog({ dataSource, symbol }: UniqueAsset): void {
|
|
|
|
|
public onOpenPositionDialog({ dataSource, symbol }: UniqueAsset) {
|
|
|
|
|
if (this.hasPermissionToOpenDetails) {
|
|
|
|
|
this.router.navigate([], {
|
|
|
|
|
queryParams: { dataSource, symbol, positionDetailDialog: true }
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public onShowAllPositions() {
|
|
|
|
|
this.pageSize = Number.MAX_SAFE_INTEGER;
|
|
|
|
|