From 10204445df3375b188d8f856e478676e9de6121b Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Sat, 5 Feb 2022 13:30:20 -0500 Subject: [PATCH] LP#1929749: flesh out the LI receiving alert confirmation dialog Add LI ID, LI title, alert text description, alert comment, and some help text. Signed-off-by: Galen Charlton --- .../eg2/src/app/staff/acq/lineitem/batch-copies.component.html | 9 ++++++++- .../src/eg2/src/app/staff/acq/lineitem/batch-copies.component.ts | 7 +++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/eg2/src/app/staff/acq/lineitem/batch-copies.component.html b/Open-ILS/src/eg2/src/app/staff/acq/lineitem/batch-copies.component.html index 69381de9e7..ed73ab088c 100644 --- a/Open-ILS/src/eg2/src/app/staff/acq/lineitem/batch-copies.component.html +++ b/Open-ILS/src/eg2/src/app/staff/acq/lineitem/batch-copies.component.html @@ -1,8 +1,15 @@ + dialogTitle="Confirm Alert" [dialogBodyTemplate]="confirmAlertsMsg"> + +
An alert has been placed on line item {{liId}} ({{liTitle}})
+
{{alertText.code()}}
+
{{alertText.description()}}
+
{{alertComment}}
+
Choose "Confirm" to acknowledge this alert and continue with receiving. Otherwise, choose "Cancel".
+
diff --git a/Open-ILS/src/eg2/src/app/staff/acq/lineitem/batch-copies.component.ts b/Open-ILS/src/eg2/src/app/staff/acq/lineitem/batch-copies.component.ts index 90cbf9d862..3af7bf249c 100644 --- a/Open-ILS/src/eg2/src/app/staff/acq/lineitem/batch-copies.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/acq/lineitem/batch-copies.component.ts @@ -35,6 +35,9 @@ export class LineitemBatchCopiesComponent implements OnInit { // Current alert that needs confirming alertText: IdlObject; + liId: number; + liTitle: string; + alertComment: string; constructor( private evt: EventService, @@ -128,9 +131,13 @@ export class LineitemBatchCopiesComponent implements OnInit { if (notes.length === 0) { return promise; } + this.liId = this.lineitem.id(); + this.liTitle = this.liService.getFirstAttributeValue(this.lineitem, 'title'); + notes.forEach(n => { promise = promise.then(_ => { this.alertText = n.alert_text(); + this.alertComment = n.value(); return this.confirmAlertsDialog.open().toPromise().then(ok => { if (!ok) { return Promise.reject(); } this.liService.alertAcks[n.id()] = true; -- 2.11.0