Removes filtering of the left side bar boards

This commit is contained in:
Michael Weimann
2018-12-11 14:59:52 +01:00
parent 922aaf31d8
commit 643d70e6f0

View File

@@ -129,17 +129,10 @@ export const BOARD_FILTERS = {
const getters = {
menu: state => {
// filters the boards depending on the active filter
const boards = state.boards.filter(board => {
return state.filter === BOARD_FILTERS.ALL
|| (state.filter === BOARD_FILTERS.ARCHIVED && board.archived === true)
|| (state.filter === BOARD_FILTERS.SHARED && board.shared === 1)
})
return {
loading: state.loading,
items: defaultCategories
.concat(boards.map(mapBoardToItem))
.concat(state.boards.map(mapBoardToItem))
.concat([addButton])
}
},