summaryrefslogtreecommitdiff
path: root/recipeBuddy/src/app/add-recipe/add-recipe.component.html
diff options
context:
space:
mode:
Diffstat (limited to 'recipeBuddy/src/app/add-recipe/add-recipe.component.html')
-rw-r--r--recipeBuddy/src/app/add-recipe/add-recipe.component.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/recipeBuddy/src/app/add-recipe/add-recipe.component.html b/recipeBuddy/src/app/add-recipe/add-recipe.component.html
index 36d45b6..a8a3e5f 100644
--- a/recipeBuddy/src/app/add-recipe/add-recipe.component.html
+++ b/recipeBuddy/src/app/add-recipe/add-recipe.component.html
@@ -1,7 +1,8 @@
<form [formGroup]="recipeForm" class="form" (ngSubmit)="onSubmit()">
<h2>Add Recipe</h2>
<mat-form-field class="full-width">
- <input matInput placeholder="Name" type="text" formControlName="recipeName">
+ <input matInput placeholder="Name" type="text"
+ formControlName="recipeName" required>
</mat-form-field>
<mat-form-field class="full-width">
<textarea matInput placeholder="Description"
@@ -83,5 +84,6 @@
</button>
</div>
</div>
- <button mat-flat-button color="primary" type="submit">Submit</button>
+ <button mat-flat-button color="primary" type="submit"
+ [disabled]="!recipeForm.valid">Submit</button>
</form>