(Calendar App) Event form disabling button with pristine.

This commit is contained in:
mustafahlvc 2017-07-26 13:38:58 +03:00
parent 7c770d6bf0
commit 906799c694

View File

@ -115,6 +115,7 @@
md-raised-button md-raised-button
(click)="dialogRef.close(eventForm)" (click)="dialogRef.close(eventForm)"
class="save-button mat-accent" class="save-button mat-accent"
[disabled]="eventForm.pristine"
aria-label="SAVE"> aria-label="SAVE">
SAVE SAVE
</button> </button>
@ -123,6 +124,7 @@
md-raised-button md-raised-button
(click)="dialogRef.close(['save',eventForm])" (click)="dialogRef.close(['save',eventForm])"
class="save-button mat-accent" class="save-button mat-accent"
[disabled]="eventForm.pristine"
aria-label="SAVE"> aria-label="SAVE">
SAVE SAVE
</button> </button>