mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-31 10:13:32 -04:00 
			
		
		
		
	order shopping lists alphabetically
This commit is contained in:
		| @@ -107,7 +107,7 @@ export default defineComponent({ | |||||||
|     }) |     }) | ||||||
|  |  | ||||||
|     async function getShoppingLists() { |     async function getShoppingLists() { | ||||||
|       const { data } = await api.shopping.lists.getAll(); |       const { data } = await api.shopping.lists.getAll(1, -1, { orderBy: "name", orderDirection: "asc" }); | ||||||
|       if (data) { |       if (data) { | ||||||
|         shoppingLists.value = data.items ?? []; |         shoppingLists.value = data.items ?? []; | ||||||
|       } |       } | ||||||
|   | |||||||
| @@ -321,7 +321,7 @@ export default defineComponent({ | |||||||
|     const recipeRefWithScale = computed(() => recipeRef.value ? { scale: props.recipeScale, ...recipeRef.value } : undefined); |     const recipeRefWithScale = computed(() => recipeRef.value ? { scale: props.recipeScale, ...recipeRef.value } : undefined); | ||||||
|  |  | ||||||
|     async function getShoppingLists() { |     async function getShoppingLists() { | ||||||
|       const { data } = await api.shopping.lists.getAll(); |       const { data } = await api.shopping.lists.getAll(1, -1, { orderBy: "name", orderDirection: "asc" }); | ||||||
|       if (data) { |       if (data) { | ||||||
|         shoppingLists.value = data.items ?? []; |         shoppingLists.value = data.items ?? []; | ||||||
|       } |       } | ||||||
|   | |||||||
| @@ -63,7 +63,7 @@ export default defineComponent({ | |||||||
|     }, useAsyncKey()); |     }, useAsyncKey()); | ||||||
|  |  | ||||||
|     async function fetchShoppingLists() { |     async function fetchShoppingLists() { | ||||||
|       const { data } = await userApi.shopping.lists.getAll(); |       const { data } = await userApi.shopping.lists.getAll(1, -1, { orderBy: "name", orderDirection: "asc" }); | ||||||
|  |  | ||||||
|       if (!data) { |       if (!data) { | ||||||
|         return []; |         return []; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user