From: Galen Charlton Date: Thu, 28 Jul 2022 15:29:55 +0000 (+0000) Subject: LP#1942220: (follow-up) refresh LI list after PO activation X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b94aea8be92b4572f07386c89404bcca1b897baa;p=working%2FEvergreen.git LP#1942220: (follow-up) refresh LI list after PO activation Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/eg2/src/app/staff/acq/lineitem/lineitem.service.ts b/Open-ILS/src/eg2/src/app/staff/acq/lineitem/lineitem.service.ts index 39d07e8e7f..f86de359fc 100644 --- a/Open-ILS/src/eg2/src/app/staff/acq/lineitem/lineitem.service.ts +++ b/Open-ILS/src/eg2/src/app/staff/acq/lineitem/lineitem.service.ts @@ -99,6 +99,10 @@ export class LineitemService { private loc: ItemLocationService ) {} + clearLiCache() { + this.liCache = []; + } + getFleshedLineitems(ids: number[], params: FleshCacheParams = {}): Observable { 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 51fd162091..8484cf0693 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 @@ -330,7 +330,11 @@ export class PoSummaryComponent implements OnInit, OnDestroy { // Refresh everything. this.initDone = false; this.doingActivation = false; - this.load(false).then(_ => this.initDone = true); + this.load(false).then(_ => { + this.initDone = true; + this.liService.clearLiCache(); + this.router.navigate([]); + }); } else { this.progressDialog.update(