From ef2d0a6239b6c39d30d97b7be5adb93f9f776660 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Tue, 11 Jan 2022 17:51:07 -0500 Subject: [PATCH] LP#1942220: (follow-up) add basic event reporting to PO cancelation Signed-off-by: Galen Charlton --- Open-ILS/src/eg2/src/app/staff/acq/po/summary.component.ts | 10 ++++++++-- 1 file changed, 8 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 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; + } }); }); } -- 2.11.0