mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-11-01 10:43:25 -04:00
feat: Query Filter Builder for Cookbooks and Meal Plans (#4346)
This commit is contained in:
@@ -51,6 +51,9 @@ export function useReadOnlyActions<T extends BoundT>(
|
||||
}
|
||||
|
||||
async function refresh(page = 1, perPage = -1, params = {} as Record<string, QueryValue>) {
|
||||
params.orderBy ??= "name";
|
||||
params.orderDirection ??= "asc";
|
||||
|
||||
loading.value = true;
|
||||
const { data } = await api.getAll(page, perPage, params);
|
||||
|
||||
@@ -102,6 +105,9 @@ export function useStoreActions<T extends BoundT>(
|
||||
}
|
||||
|
||||
async function refresh(page = 1, perPage = -1, params = {} as Record<string, QueryValue>) {
|
||||
params.orderBy ??= "name";
|
||||
params.orderDirection ??= "asc";
|
||||
|
||||
loading.value = true;
|
||||
const { data } = await api.getAll(page, perPage, params);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user