]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/eg2/src/app/share/dialog/confirm.component.ts
LP1809183: Allow passing template to eg-confirm-dialog
[working/Evergreen.git] / Open-ILS / src / eg2 / src / app / share / dialog / confirm.component.ts
1 import {Component, Input, ViewChild, TemplateRef} from '@angular/core';
2 import {DialogComponent} from '@eg/share/dialog/dialog.component';
3
4 @Component({
5   selector: 'eg-confirm-dialog',
6   templateUrl: './confirm.component.html'
7 })
8
9 /**
10  * Confirmation dialog that asks a yes/no question.
11  */
12 export class ConfirmDialogComponent extends DialogComponent {
13     // What question are we asking?
14     @Input() public dialogBody: string;
15     @Input() public dialogBodyTemplate: TemplateRef<any>;
16 }
17
18