Added confirm dialog component to help with confirming actions

This commit is contained in:
Isaac Grynsztein
2020-07-05 22:12:07 -04:00
parent 2e7b1c2d53
commit 990b3d4037
4 changed files with 62 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
<h4 mat-dialog-title>{{dialogTitle}}</h4>
<mat-dialog-content>
<div>
{{dialogText}}
</div>
</mat-dialog-content>
<mat-dialog-actions>
<!-- The mat-dialog-close directive optionally accepts a value as a result for the dialog. -->
<button color="primary" mat-flat-button type="submit" [mat-dialog-close]="true">{{submitText}}</button>
<span class="spacer"></span>
<button style="float: right;" mat-stroked-button mat-dialog-close>Cancel</button>
</mat-dialog-actions>