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:
Thomas Kaul
2024-05-11 20:27:18 +02:00
committed by GitHub
parent 4b1c27c245
commit 72e75208df
11 changed files with 100 additions and 309 deletions

View File

@@ -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 }
});
}

View File

@@ -60,9 +60,9 @@ export class GfAssistantListItemComponent
this.queryParams = {
dataSource,
symbol,
positionDetailDialog: true
holdingDetailDialog: true
};
this.routerLink = ['/portfolio', 'holdings'];
this.routerLink = [];
}
}

View File

@@ -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 }
});
}
}