From 423e8af8d25c9a3aadbef7028d4d8aef07f2fe90 Mon Sep 17 00:00:00 2001 From: hay-kot Date: Mon, 5 Apr 2021 21:34:45 -0800 Subject: [PATCH] remove old code --- .../components/Recipe/RecipeEditor/index.vue | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/frontend/src/components/Recipe/RecipeEditor/index.vue b/frontend/src/components/Recipe/RecipeEditor/index.vue index 5e6cf46b1..f3f39030d 100644 --- a/frontend/src/components/Recipe/RecipeEditor/index.vue +++ b/frontend/src/components/Recipe/RecipeEditor/index.vue @@ -248,26 +248,14 @@ export default { v.split(" ").length <= 1 || this.$i18n.t("recipe.no-white-space-allowed"), }, - categoriesSearchInput: "", - tagsSearchInput: "", }; }, - computed: { - allCategories() { - const categories = this.$store.getters.getAllCategories; - return categories.map(cat => cat.name); - }, - allTags() { - const tags = this.$store.getters.getAllTags; - return tags.map(cat => cat.name); - }, - }, methods: { uploadImage() { this.$emit("upload", this.fileObject); }, async updateImage() { - let slug = this.value.slug; + const slug = this.value.slug; api.recipes.updateImage(slug, this.fileObject); }, toggleDisabled(stepIndex) { @@ -290,9 +278,6 @@ export default { generateKey(item, index) { return utils.generateUniqueKey(item, index); }, - deleteRecipe() { - this.$emit("delete"); - }, appendIngredients(ingredients) { this.value.recipeIngredient.push(...ingredients);