Bugfix/fix position detail dialog close functionality (#3396)
* Handle holding detail dialog open functionality in a single place (AppComponent) * Update changelog
This commit is contained in:
@@ -259,7 +259,7 @@ export class GfActivitiesTableComponent
|
||||
|
||||
public onOpenPositionDialog({ dataSource, symbol }: UniqueAsset) {
|
||||
this.router.navigate([], {
|
||||
queryParams: { dataSource, symbol, positionDetailDialog: true }
|
||||
queryParams: { dataSource, symbol, holdingDetailDialog: true }
|
||||
});
|
||||
}
|
||||
|
||||
|
@@ -60,9 +60,9 @@ export class GfAssistantListItemComponent
|
||||
this.queryParams = {
|
||||
dataSource,
|
||||
symbol,
|
||||
positionDetailDialog: true
|
||||
holdingDetailDialog: true
|
||||
};
|
||||
this.routerLink = ['/portfolio', 'holdings'];
|
||||
this.routerLink = [];
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -105,7 +105,7 @@ export class GfHoldingsTableComponent implements OnChanges, OnDestroy, OnInit {
|
||||
public onOpenPositionDialog({ dataSource, symbol }: UniqueAsset) {
|
||||
if (this.hasPermissionToOpenDetails) {
|
||||
this.router.navigate([], {
|
||||
queryParams: { dataSource, symbol, positionDetailDialog: true }
|
||||
queryParams: { dataSource, symbol, holdingDetailDialog: true }
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user