From: Galen Charlton Date: Tue, 11 Jan 2022 22:51:07 +0000 (-0500) Subject: LP#1942220: (follow-up) add basic event reporting to PO cancelation X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ef2d0a6239b6c39d30d97b7be5adb93f9f776660;p=working%2FEvergreen.git LP#1942220: (follow-up) add basic event reporting to PO cancelation Signed-off-by: Galen Charlton --- 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 ec02900bd0..6a4af2346d 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 @@ -166,9 +166,15 @@ export class PoSummaryComponent implements OnInit, OnDestroy { this.net.request('open-ils.acq', 'open-ils.acq.purchase_order.cancel', this.auth.token(), this.poId, reason - ).subscribe(ok => { + ).subscribe(resp => { this.progressDialog.close(); - location.href = location.href; + + const evt = this.evt.parse(resp); + if (evt) { + alert(evt); + } else { + location.href = location.href; + } }); }); }