lp1827942: Resolved the issue of the form disappearing when it isn't clicked. user/sandbergja/lp1827942_angular_protect_modal_closures_signoff
authorZavier Banks <zbanks@catalyte.io>
Tue, 17 Sep 2019 20:59:15 +0000 (20:59 +0000)
committerJane Sandberg <sandbej@linnbenton.edu>
Wed, 11 Dec 2019 15:35:55 +0000 (07:35 -0800)
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 <zbanks@catalyte.io>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Open-ILS/src/eg2/src/app/share/dialog/dialog.component.ts

index cafbbcf..27b611f 100644 (file)
@@ -83,6 +83,7 @@ export class DialogComponent implements OnInit {
             this.finalize();
         }
 
+        options.backdrop="static";
         this.modalRef = this.modalService.open(this.dialogContent, options);
         DialogComponent.instances[this.identifier] = this;