LP1991801 Refresh PO after activation
authorTiffany Little <tlittle@georgialibraries.org>
Fri, 16 Dec 2022 20:36:00 +0000 (15:36 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 19 Dec 2022 15:20:51 +0000 (10:20 -0500)
Signed-off-by: Tiffany Little <tlittle@georgialibraries.org>
Open-ILS/src/eg2/src/app/staff/acq/po/summary.component.ts

index 8484cf0..1f9bb01 100644 (file)
@@ -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 {