Refactor deleted items into trashbin store
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -175,6 +175,7 @@ export default {
|
||||
async deleteCard({ commit }, card) {
|
||||
await apiClient.deleteCard(card.id)
|
||||
commit('deleteCard', card)
|
||||
commit('moveCardToTrash', card)
|
||||
},
|
||||
async archiveUnarchiveCard({ commit }, card) {
|
||||
let call = 'archiveCard'
|
||||
@@ -201,10 +202,6 @@ export default {
|
||||
await apiClient.removeLabelFromCard(data)
|
||||
commit('updateCardProperty', { property: 'labels', card: data.card })
|
||||
},
|
||||
async cardUndoDelete({ commit }, card) {
|
||||
const updatedCard = await apiClient.updateCard(card)
|
||||
commit('addCard', updatedCard)
|
||||
},
|
||||
async updateCardDesc({ commit }, card) {
|
||||
const updatedCard = await apiClient.updateCard(card)
|
||||
commit('updateCardProperty', { property: 'description', card: updatedCard })
|
||||
|
||||
Reference in New Issue
Block a user