diff --git a/frontend/components/Domain/Recipe/RecipeNotes.vue b/frontend/components/Domain/Recipe/RecipeNotes.vue index 49799fb8e..e1791f6b0 100644 --- a/frontend/components/Domain/Recipe/RecipeNotes.vue +++ b/frontend/components/Domain/Recipe/RecipeNotes.vue @@ -1,13 +1,13 @@ - - +function addNote() { + model.value = [...model.value, { title: "", text: "" }]; +} + +function removeByIndex(index: number) { + const newNotes = [...model.value]; + newNotes.splice(index, 1); + model.value = newNotes; +} +