From: Zavier Banks Date: Tue, 17 Sep 2019 20:59:15 +0000 (+0000) Subject: lp1827942: Resolved the issue of the form disappearing when it isn't clicked. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fzbanks%2Flp1827942_angular_protect_modal_closures;p=working%2FEvergreen.git lp1827942: Resolved the issue of the form disappearing when it isn't clicked. I added a new property to the "options" object inside the "open" function, which resides in the dialog.component.ts. The static string inside the backdrop property makes the form stay, even if the backdrop is clicked. Signed-off-by: Zavier Banks --- diff --git a/Open-ILS/src/eg2/src/app/share/dialog/dialog.component.ts b/Open-ILS/src/eg2/src/app/share/dialog/dialog.component.ts index 79a5c8605d..fc1c8e2b67 100644 --- a/Open-ILS/src/eg2/src/app/share/dialog/dialog.component.ts +++ b/Open-ILS/src/eg2/src/app/share/dialog/dialog.component.ts @@ -64,6 +64,7 @@ export class DialogComponent implements OnInit { this.finalize(); } + options.backdrop="static"; this.modalRef = this.modalService.open(this.dialogContent, options); if (this.onOpen$) {