delete quick entry and some stats

This commit is contained in:
Akhil Gupta
2021-08-13 13:04:00 +05:30
parent 4ee44fb1f1
commit 0e7d105e52
16 changed files with 350 additions and 22 deletions

View File

@@ -165,4 +165,11 @@ export const actions = {
return data
})
},
deleteQuickEntry({ commit, state, rootState, dispatch }, { id }) {
return axios.delete(`/api/quickEntries/${id}`).then((response) => {
const data = response.data
dispatch('fetchQuickEntries', { force: true })
return data
})
},
}