// Changing a tab in the UI means clearing the route (e.g.,
// if we originally navigated vi funds/fund/:id or
// funds/funding_source/:id
- // This is pretty much only cosmetic
onNavChange(evt: NgbNavChangeEvent) {
+ // clear any IDs parsed from the original route
+ // to avoid reopening the fund or funding source
+ // dialogs when navigating back to the fund/funding source
+ // tab.
+ this.fundId = null;
+ this.fundingSourceId = null;
const url = this.router.createUrlTree(['/staff/admin/acq/funds']).toString();
this.location.go(url); // go without reloading
}