Added ability to mark card as done
Closes #534 Signed-off-by: Thanos Kamber <thanos.kamber@gmail.com>
This commit is contained in:
committed by
Julius Härtl
parent
93e5ee7301
commit
c3b4ed6e1f
@@ -334,6 +334,15 @@ export default {
|
||||
const updatedCard = await apiClient[call](card)
|
||||
commit('updateCard', updatedCard)
|
||||
},
|
||||
async changeCardDoneStatus({ commit }, card) {
|
||||
let call = 'markCardAsDone'
|
||||
if (card.done === false) {
|
||||
call = 'markCardAsUndone'
|
||||
}
|
||||
|
||||
const updatedCard = await apiClient[call](card)
|
||||
commit('updateCardProperty', { property: 'done', card: updatedCard })
|
||||
},
|
||||
async assignCardToUser({ commit }, { card, assignee }) {
|
||||
const user = await apiClient.assignUser(card.id, assignee.userId, assignee.type)
|
||||
commit('assignCardToUser', user)
|
||||
|
||||
Reference in New Issue
Block a user