Use app nav children for categories

Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
This commit is contained in:
Michael Weimann
2018-12-22 11:39:39 +01:00
parent 41b917abfb
commit 756b4ddcc2
3 changed files with 91 additions and 30 deletions

View File

@@ -55,6 +55,16 @@ export default new Vuex.Store({
return board.archived === false
})
},
archivedBoards: state => {
return state.boards.filter(board => {
return board.archived === true
})
},
sharedBoards: state => {
return state.boards.filter(board => {
return board.shared
})
},
filteredBoards: state => {
// filters the boards depending on the active filter
const boards = state.boards.filter(board => {