From: Galen Charlton Date: Wed, 2 Jun 2021 22:06:59 +0000 (-0400) Subject: funds: improve hav change handling X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8b13015f6323b372cb422ddfbf4f32ec61ca6a62;p=working%2FEvergreen.git funds: improve hav change handling LH#46 Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/eg2/src/app/staff/admin/acq/funds/funds.component.ts b/Open-ILS/src/eg2/src/app/staff/admin/acq/funds/funds.component.ts index f40a7801fe..92b2a703d7 100644 --- a/Open-ILS/src/eg2/src/app/staff/admin/acq/funds/funds.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/admin/acq/funds/funds.component.ts @@ -39,8 +39,13 @@ export class FundsComponent implements OnInit { // 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 }