added new functions

Signed-off-by: Jakob <jakob.roehrl@web.de>
This commit is contained in:
Jakob
2019-07-11 14:31:08 +02:00
committed by Julius Härtl
parent 408ea69272
commit fcabdbdc24
12 changed files with 235 additions and 45 deletions

View File

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