LP1904036 Alert dialog honors dialogTitle when present
authorBill Erickson <berickxx@gmail.com>
Mon, 1 Mar 2021 19:57:12 +0000 (14:57 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Oct 2022 00:13:24 +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/share/dialog/alert.component.html

index e9ca466..232fbf0 100644 (file)
@@ -1,6 +1,9 @@
 <ng-template #dialogContent>
   <div class="modal-body">
-    <h4 i18n class="modal-title">Could Not Complete The Action</h4>
+    <h4 class="modal-title">
+      <span *ngIf="!dialogTitle" i18n>Could Not Complete The Action</span>
+      <span *ngIf="dialogTitle">{{dialogTitle}}</span>
+    </h4>
     <div class="alert alert-danger">{{dialogBody}}</div>
   </div>
   <div class="modal-footer">