1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-31 19:19:41 +02:00

backend-events + code-cleanup (#395)

* additional server events

* sort 'recent recipes' by updated

* remove duplicate code

* fixes #396

* set color

* consolidate tag/category pages

* set colors

* list unorganized recipes

* cleanup old code

* remove flash message, switch to global snackbar

* cancel to close

* cleanup

Co-authored-by: hay-kot <hay-kot@pm.me>
This commit is contained in:
Hayden 2021-05-07 14:33:20 -08:00 committed by GitHub
parent 96919319b1
commit 466997febc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 1604 additions and 686 deletions

View file

@ -69,10 +69,7 @@ export default {
methods: {
async buildPage() {
this.page = await api.siteSettings.getPage(this.pageSlug);
},
filterRecipe(slug) {
const storeCategory = this.recipeStore.find(element => element.slug === slug);
return storeCategory ? storeCategory.recipes : [];
this.tab = this.page.categories[0];
},
sortRecipes(sortedRecipes, destKey) {
this.page.categories[destKey].recipes = sortedRecipes;