Skip to content

Commit

Permalink
chore: refresh shopping items on item modal
Browse files Browse the repository at this point in the history
fetch new items when new or edit modal changes state
  • Loading branch information
BobyMCbobs committed Aug 23, 2024
1 parent 6edb578 commit aba1541
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion web/src/views/authenticated/shopping-list-view.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1227,7 +1227,19 @@ export default {
shoppinglist.GetShoppingList(this.templateId).then((resp) => {
this.templateListName = resp.data.spec.name
})
}
},
isNewItemModalActive() {
if (this.isNewItemModalActive !== false) {
return
}
this.GetShoppingListItems()
},
isEditItemModalActive() {
if (this.isEditItemModalActive !== false) {
return
}
this.GetShoppingListItems()
},
},
async beforeMount () {
this.GetShoppingList()
Expand Down

0 comments on commit aba1541

Please sign in to comment.