mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-05 13:35:23 +02:00
feat: Filter Recipes By Household (and a ton of bug fixes) (#4207)
Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
This commit is contained in:
parent
2a6922a85c
commit
7c274de778
65 changed files with 896 additions and 590 deletions
|
@ -272,12 +272,10 @@ export default defineComponent({
|
|||
const errors = ref<Error[]>([]);
|
||||
|
||||
function checkForUnit(unit?: IngredientUnit | CreateIngredientUnit) {
|
||||
// @ts-expect-error; we're just checking if there's an id on this unit and returning a boolean
|
||||
return !!unit?.id;
|
||||
}
|
||||
|
||||
function checkForFood(food?: IngredientFood | CreateIngredientFood) {
|
||||
// @ts-expect-error; we're just checking if there's an id on this food and returning a boolean
|
||||
return !!food?.id;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<template>
|
||||
<v-container>
|
||||
<RecipeOrganizerPage
|
||||
v-if="items"
|
||||
:items="items"
|
||||
v-if="store"
|
||||
:items="store"
|
||||
:icon="$globals.icons.categories"
|
||||
item-type="categories"
|
||||
@delete="actions.deleteOne"
|
||||
|
@ -24,10 +24,10 @@ export default defineComponent({
|
|||
},
|
||||
middleware: ["auth", "group-only"],
|
||||
setup() {
|
||||
const { items, actions } = useCategoryStore();
|
||||
const { store, actions } = useCategoryStore();
|
||||
|
||||
return {
|
||||
items,
|
||||
store,
|
||||
actions,
|
||||
};
|
||||
},
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<template>
|
||||
<v-container>
|
||||
<RecipeOrganizerPage
|
||||
v-if="items"
|
||||
:items="items"
|
||||
v-if="store"
|
||||
:items="store"
|
||||
:icon="$globals.icons.tags"
|
||||
item-type="tags"
|
||||
@delete="actions.deleteOne"
|
||||
|
@ -24,10 +24,10 @@ export default defineComponent({
|
|||
},
|
||||
middleware: ["auth", "group-only"],
|
||||
setup() {
|
||||
const { items, actions } = useTagStore();
|
||||
const { store, actions } = useTagStore();
|
||||
|
||||
return {
|
||||
items,
|
||||
store,
|
||||
actions,
|
||||
};
|
||||
},
|
||||
|
|
|
@ -29,7 +29,7 @@ export default defineComponent({
|
|||
|
||||
return {
|
||||
dialog,
|
||||
tools: toolStore.items,
|
||||
tools: toolStore.store,
|
||||
actions: toolStore.actions,
|
||||
};
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue