Prevent duplicate submissions in sendForm by adding a loading state guard and updating the submit button's disabled condition.
This commit is contained in:
1 parent
a9e9f1f03a
commit
c56f5f9fe1
2 files changed
+19
-9
No files matched your search
@@ -130,7 +130,7 @@
|
||||
}
|
||||
</mat-form-field>
|
||||
</div>
|
||||
<button mat-raised-button (click)="onSubmit()" [disabled]="form.invalid">
|
||||
<button mat-raised-button (click)="onSubmit()" [disabled]="formSubmitting || form.invalid">
|
||||
Submit Appeal
|
||||
</button>
|
||||
</section>
|
||||
|
||||
Reference in new issue
Block a user