mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-03 05:11:31 -05:00
update SLR servings UI
This commit is contained in:
@@ -124,7 +124,6 @@ export const useShoppingListStore = defineStore(_STORE_ID, {
|
||||
},
|
||||
},
|
||||
actions: {
|
||||
// TODO implement shopping list recipes
|
||||
/**
|
||||
* Retrieves all shopping related data (shopping list entries, supermarkets, supermarket categories and shopping list recipes) from API
|
||||
*/
|
||||
@@ -133,6 +132,8 @@ export const useShoppingListStore = defineStore(_STORE_ID, {
|
||||
this.currently_updating = true
|
||||
let apiClient = new ApiApiFactory()
|
||||
apiClient.listShoppingListEntrys().then((r) => {
|
||||
this.entries = {}
|
||||
|
||||
r.data.forEach((e) => {
|
||||
Vue.set(this.entries, e.id, e)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user