diff options
author | Tucker Evans <tuckerevans24@gmail.com> | 2019-12-14 14:07:36 -0500 |
---|---|---|
committer | Tucker Evans <tuckerevans24@gmail.com> | 2019-12-14 16:00:13 -0500 |
commit | 89cc24f3034aa8b4e8f24647c41173a7c3734e39 (patch) | |
tree | a5bc47ad5c4b5ef97f0098180acf46b3f7af5932 /recipeBuddy/src/app/recipe-card/recipe-card.component.ts | |
parent | 4ec8cbd63deb6cb8b24db58b36ecd4a3ccdda79e (diff) |
WIP-Changes made for demo, should be reviewed and merged as needed.WIP-demo_changes
Diffstat (limited to 'recipeBuddy/src/app/recipe-card/recipe-card.component.ts')
-rw-r--r-- | recipeBuddy/src/app/recipe-card/recipe-card.component.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/recipeBuddy/src/app/recipe-card/recipe-card.component.ts b/recipeBuddy/src/app/recipe-card/recipe-card.component.ts index 490f2ab..bb6fc9a 100644 --- a/recipeBuddy/src/app/recipe-card/recipe-card.component.ts +++ b/recipeBuddy/src/app/recipe-card/recipe-card.component.ts @@ -63,9 +63,8 @@ export class RecipeCardComponent implements OnInit { if(txt == true) { alert(this.recipe.name + " was deleted."); - this.restService.deleteRecipe(id).subscribe(); + this.restService.deleteRecipe(id).subscribe(res=> window.location.reload(), err => console.log(err)); } - window.location.reload(); } } |