i18n-dialogBody dialogBody="Payments over 100,000 are denied by policy.">
</eg-alert-dialog>
+<eg-alert-dialog #errorDialog
+ i18n-dialogTitle dialogTitle="Error"
+</eg-alert-dialog>
+
<eg-confirm-dialog #warnPayDialog
i18n-dialogBody i18n-dialogTitle dialogTitle="Confirm Payment Amount"
dialogBody="Are you sure you want to apply a payment of {{paymentAmount | currency}}?">
@ViewChild('billGrid') private billGrid: GridComponent;
@ViewChild('annotateDialog') private annotateDialog: PromptDialogComponent;
@ViewChild('maxPayDialog') private maxPayDialog: AlertDialogComponent;
+ @ViewChild('errorDialog') private errorDialog: AlertDialogComponent;
@ViewChild('warnPayDialog') private warnPayDialog: ConfirmDialogComponent;
@ViewChild('voidBillsDialog') private voidBillsDialog: ConfirmDialogComponent;
@ViewChild('refundDialog') private refundDialog: ConfirmDialogComponent;
console.error(evt + '');
console.error(evt);
this.toast.danger(evt + '');
+ this.errorDialog.dialogBody = evt.toString();
+ this.errorDialog.open().toPromise();
return true;
}
return false;