new functions

Signed-off-by: Jakob <jakob.roehrl@web.de>
This commit is contained in:
Jakob
2019-07-24 08:08:46 +02:00
committed by Julius Härtl
parent 38dc7945dd
commit 4a45687a28
9 changed files with 226 additions and 55 deletions

View File

@@ -68,7 +68,7 @@ export default {
}
},
setDeletedStacks(state, delStacks) {
state.deletedStacks.push(delStacks)
state.deletedStacks.push(delStacks[0])
},
setDeletedCards(state, delCards) {
state.deletedCards.push(delCards)
@@ -130,6 +130,13 @@ export default {
.then((deletedCards) => {
commit('setDeletedCards', deletedCards)
})
},
stackUndoDelete({ commit }, stack) {
apiClient.updateStack(stack)
.then((stack) => {
commit('addStack', stack)
})
}
}
}