move card to another board (#1242)

move card to another board
This commit is contained in:
Julius Härtl
2019-10-14 08:49:20 +02:00
committed by GitHub
2 changed files with 74 additions and 4 deletions

View File

@@ -116,6 +116,12 @@ export default {
commit('updateTitle', updatedCard)
})
},
moveCard({ commit }, card) {
apiClient.updateCard(card)
.then((updatedCard) => {
commit('deleteCard', updatedCard)
})
},
reorderCard({ commit }, card) {
commit('updateCard', card)
// TODO iterate over cards in stacks and increase order state from cards >= card.order