add redirection
This commit is contained in:
@@ -57,6 +57,7 @@ export class RecipeAddComponent {
|
|||||||
} else {
|
} else {
|
||||||
this.recipes.edit({ id: this.#recipeId, ...partial });
|
this.recipes.edit({ id: this.#recipeId, ...partial });
|
||||||
}
|
}
|
||||||
|
this.router.navigateByUrl('recipes');
|
||||||
}
|
}
|
||||||
|
|
||||||
onAddIngredient(): void {
|
onAddIngredient(): void {
|
||||||
|
Reference in New Issue
Block a user