From: Jane Sandberg Date: Wed, 19 Dec 2018 23:51:25 +0000 (-0800) Subject: testing out eg-confirm-dialog X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fuser%2Fsandbergja%2Ftesting-out-confirmation-modal;p=working%2FEvergreen.git testing out eg-confirm-dialog --- diff --git a/Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.html b/Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.html index 289ed50268..003df23172 100644 --- a/Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.html +++ b/Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.html @@ -130,4 +130,13 @@ HERasdfE

+ + + + + + diff --git a/Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.ts b/Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.ts index 92b18dc9a9..69c8672dc0 100644 --- a/Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.ts @@ -30,6 +30,11 @@ export class SandboxComponent implements OnInit { @ViewChild('printTemplate') private printTemplate: TemplateRef; + @ViewChild('numberConfirmDialog') + private numConfirmDialog: ConfirmDialogComponent; + + public numThings: number = 0; + // @ViewChild('helloStr') private helloStr: StringComponent; gridDataSource: GridDataSource = new GridDataSource(); @@ -183,6 +188,13 @@ export class SandboxComponent implements OnInit { .then(txt => this.toast.success(txt)); }, 4000); } + + confirmNumber(num: number): void { + this.numThings = num; + console.log(this.numThings); + this.numConfirmDialog.open(); + } + }