From 05d663651a415f4185b17fd1fc9431da57d8a428 Mon Sep 17 00:00:00 2001 From: Tiffany Little Date: Fri, 16 Dec 2022 15:36:00 -0500 Subject: [PATCH] LP1991801 Refresh PO after activation Signed-off-by: Tiffany Little --- Open-ILS/src/eg2/src/app/staff/acq/po/summary.component.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/acq/po/summary.component.ts b/Open-ILS/src/eg2/src/app/staff/acq/po/summary.component.ts index 8484cf0693..1f9bb0123a 100644 --- a/Open-ILS/src/eg2/src/app/staff/acq/po/summary.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/acq/po/summary.component.ts @@ -1,5 +1,5 @@ import {Component, Input, OnInit, OnDestroy, ViewChild} from '@angular/core'; -import {Router} from '@angular/router'; +import {Router,ActivatedRoute, ParamMap} from '@angular/router'; import {of, Observable, Subscription} from 'rxjs'; import {tap, take, map} from 'rxjs/operators'; import {IdlObject, IdlService} from '@eg/core/idl.service'; @@ -66,6 +66,7 @@ export class PoSummaryComponent implements OnInit, OnDestroy { constructor( private router: Router, + private route: ActivatedRoute, private evt: EventService, private idl: IdlService, private net: NetService, @@ -333,7 +334,10 @@ export class PoSummaryComponent implements OnInit, OnDestroy { this.load(false).then(_ => { this.initDone = true; this.liService.clearLiCache(); - this.router.navigate([]); + this.router.navigate([], { + relativeTo: this.route, + queryParamsHandling: 'merge' + }); }); } else { -- 2.11.0