mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-25 08:09:41 +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
|
@ -1,5 +1,5 @@
|
|||
import { computed, ref, Ref, useAsync } from "@nuxtjs/composition-api";
|
||||
import { useUserApi } from "~/composables/api";
|
||||
import { useAdminApi, useUserApi } from "~/composables/api";
|
||||
import { HouseholdCreate, HouseholdInDB } from "~/lib/api/types/household";
|
||||
|
||||
const householdSelfRef = ref<HouseholdInDB | null>(null);
|
||||
|
@ -46,8 +46,8 @@ export const useHouseholdSelf = function () {
|
|||
return { actions, household };
|
||||
};
|
||||
|
||||
export const useHouseholds = function () {
|
||||
const api = useUserApi();
|
||||
export const useAdminHouseholds = function () {
|
||||
const api = useAdminApi();
|
||||
const loading = ref(false);
|
||||
|
||||
function getAllHouseholds() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue