mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 14:33:33 -07:00
remove old code
This commit is contained in:
parent
b8e457f4fd
commit
423e8af8d2
1 changed files with 1 additions and 16 deletions
|
@ -248,26 +248,14 @@ export default {
|
||||||
v.split(" ").length <= 1 ||
|
v.split(" ").length <= 1 ||
|
||||||
this.$i18n.t("recipe.no-white-space-allowed"),
|
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: {
|
methods: {
|
||||||
uploadImage() {
|
uploadImage() {
|
||||||
this.$emit("upload", this.fileObject);
|
this.$emit("upload", this.fileObject);
|
||||||
},
|
},
|
||||||
async updateImage() {
|
async updateImage() {
|
||||||
let slug = this.value.slug;
|
const slug = this.value.slug;
|
||||||
api.recipes.updateImage(slug, this.fileObject);
|
api.recipes.updateImage(slug, this.fileObject);
|
||||||
},
|
},
|
||||||
toggleDisabled(stepIndex) {
|
toggleDisabled(stepIndex) {
|
||||||
|
@ -290,9 +278,6 @@ export default {
|
||||||
generateKey(item, index) {
|
generateKey(item, index) {
|
||||||
return utils.generateUniqueKey(item, index);
|
return utils.generateUniqueKey(item, index);
|
||||||
},
|
},
|
||||||
deleteRecipe() {
|
|
||||||
this.$emit("delete");
|
|
||||||
},
|
|
||||||
|
|
||||||
appendIngredients(ingredients) {
|
appendIngredients(ingredients) {
|
||||||
this.value.recipeIngredient.push(...ingredients);
|
this.value.recipeIngredient.push(...ingredients);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue