tried to move loadBoard to store

Signed-off-by: Jakob <jakob.roehrl@web.de>
This commit is contained in:
Jakob
2019-10-19 14:27:00 +02:00
parent 23e88a7e15
commit 1d54fc3ae8
3 changed files with 22 additions and 4 deletions

View File

@@ -88,13 +88,13 @@ export default {
commit('orderStack', { stack, addedIndex, removedIndex })
})
},
loadStacks({ commit }, board) {
loadStacks({ commit }, boardId) {
commit('clearCards')
let call = 'loadStacks'
if (this.state.showArchived === true) {
call = 'loadArchivedStacks'
}
apiClient[call](board.id)
apiClient[call](boardId)
.then((stacks) => {
for (let i in stacks) {
let stack = stacks[i]