LP1904036 Circ events (checkout) copy alert display repair
authorBill Erickson <berickxx@gmail.com>
Thu, 16 Sep 2021 15:53:41 +0000 (11:53 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Oct 2022 00:13:37 +0000 (20:13 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/share/circ/events-dialog.component.html

index b88f786..69569b3 100644 (file)
               <!-- Traditional copy.alert_message value in payload -->
               <div class="mt-2 font-weight-bold">{{evt.payload}}</div>
             </ng-container>
+            <ng-container *ngIf="isArray(evt.payload)">
+              <!-- Array of new-style copy alerts in payload -->
+              <div class="mt-2 font-weight-bold" *ngFor="let alert of evt.payload">
+                <div>{{alert.alert_type().name()}}</div>
+                <div>{{alert.note()}}</div>
+              </div>
+            </ng-container>
           </ng-container>
           <ng-container *ngIf="evt.textcode == 'ITEM_ON_HOLDS_SHELF'">
             <a target="_blank" class="mt-3"