From 8a99155356f452aa0288e7636a71a3eb30668f44 Mon Sep 17 00:00:00 2001 From: Hayden Date: Sun, 3 Jan 2021 10:01:49 -0900 Subject: [PATCH] delete button for tags/categories --- .../components/RecipeEditor/EditRecipe.vue | 27 ++++++++++++++----- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/RecipeEditor/EditRecipe.vue b/frontend/src/components/RecipeEditor/EditRecipe.vue index a73d1c130e7c..9a03bd05e263 100644 --- a/frontend/src/components/RecipeEditor/EditRecipe.vue +++ b/frontend/src/components/RecipeEditor/EditRecipe.vue @@ -20,10 +20,7 @@
- + @@ -74,7 +71,13 @@ v-model="value.categories" > @@ -83,7 +86,13 @@

Tags

@@ -255,6 +264,12 @@ export default { removeNote(index) { this.value.notes.splice(index, 1); }, + removeCategory(index) { + this.value.categories.splice(index, 1); + }, + removeTags(index) { + this.value.tags.splice(index, 1); + }, }, };