mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-30 18:49:41 +02:00
feature/recipe-patch-improvements (#382)
* automated docs update * recipe rating component * recipe partial updates - closes #25 * use Vue.delete to update store * format * arrow functions * fix tests * format * initial context menu * localize * add confirmation dialog * context menu * fix bare exception * update line length * format all file with prettier * update changelog * download as json * update python dependencies * update javascript dependencies Co-authored-by: hay-kot <hay-kot@pm.me>
This commit is contained in:
parent
c196445e61
commit
be378cb20c
121 changed files with 18942 additions and 4765 deletions
|
@ -17,10 +17,7 @@
|
|||
</v-tabs>
|
||||
|
||||
<v-tabs-items v-model="tab">
|
||||
<v-tab-item
|
||||
v-for="(item, index) in categories"
|
||||
:key="item.slug + index"
|
||||
>
|
||||
<v-tab-item v-for="(item, index) in categories" :key="item.slug + index">
|
||||
<CardSection class="mb-5 mx-1" :recipes="filterRecipe(item.slug)" />
|
||||
</v-tab-item>
|
||||
</v-tabs-items>
|
||||
|
@ -76,9 +73,7 @@ export default {
|
|||
return await api.categories.getRecipesInCategory(category);
|
||||
},
|
||||
filterRecipe(slug) {
|
||||
const storeCategory = this.recipeStore.find(
|
||||
element => element.slug === slug
|
||||
);
|
||||
const storeCategory = this.recipeStore.find(element => element.slug === slug);
|
||||
return storeCategory ? storeCategory.recipes : [];
|
||||
},
|
||||
},
|
||||
|
@ -89,4 +84,4 @@ export default {
|
|||
.header-background {
|
||||
background-color: #121619;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue