Moves boards into their own state

This commit is contained in:
Michael Weimann
2018-12-11 15:42:25 +01:00
parent 643d70e6f0
commit 6b2873ab28
7 changed files with 142 additions and 97 deletions

View File

@@ -28,7 +28,7 @@
<div class="board-list-avatars-cell">Members</div>
<div class="board-list-actions-cell" />
</div>
<BoardItem v-for="board in boards" :key="board.id" :board="board" />
<BoardItem v-for="board in filteredBoards" :key="board.id" :board="board" />
</div>
</template>
@@ -49,13 +49,13 @@ export default {
}
},
computed: {
...mapGetters('nav', [
'boards'
...mapGetters('boards', [
'filteredBoards'
])
},
watch: {
navFilter: function(value) {
this.$store.commit('nav/setFilter', value)
this.$store.commit('boards/setFilter', value)
}
}
}