added auto shopping functionality. fixed bug when there are no matching recipes

This commit is contained in:
AquaticLava
2023-08-01 21:52:59 -06:00
parent df684f591a
commit ecd828008e
4 changed files with 43 additions and 6 deletions

View File

@@ -372,7 +372,8 @@ export default {
date: Date.now(),
startDay: null,
endDay: null,
shared: []
shared: [],
addshopping: false
},
showDate: new Date(),
plan_entries: [],
@@ -695,7 +696,8 @@ export default {
"meal_type_id" : autoPlan.meal_types[mealTypeIndex].id,
"keywords" : autoPlan.keywords[mealTypeIndex],
"servings" : autoPlan.servings,
"shared" : autoPlan.shared
"shared" : autoPlan.shared,
"addshopping": autoPlan.addshopping
}
await apiClient.createAutoPlanViewSet(data)