delete box button works, with
\confirmation
This commit is contained in:
parent
affd6f6c86
commit
07213bd421
3 changed files with 14 additions and 6 deletions
|
@ -315,6 +315,10 @@ const store = new Vuex.Store({
|
|||
commit('closeAddBoxModal');
|
||||
});
|
||||
},
|
||||
async deleteBox({commit, dispatch}, box_id) {
|
||||
await axios.delete(`/2/boxes/${box_id}/`);
|
||||
dispatch('loadBoxes');
|
||||
},
|
||||
async updateItem({commit, getters}, item) {
|
||||
const {data} = await axios.put(`/2/${getters.getEventSlug}/item/${item.uid}/`, item);
|
||||
commit('updateItem', data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue