From 8b13015f6323b372cb422ddfbf4f32ec61ca6a62 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Wed, 2 Jun 2021 18:06:59 -0400 Subject: [PATCH] funds: improve hav change handling LH#46 Signed-off-by: Galen Charlton --- Open-ILS/src/eg2/src/app/staff/admin/acq/funds/funds.component.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 } -- 2.11.0