Properly filter archived view and deleted cards

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-08-24 18:13:18 +02:00
parent b5862b482a
commit 7e183d6e99
2 changed files with 8 additions and 3 deletions

View File

@@ -162,7 +162,12 @@ export default {
showArchived: state => state.showArchived,
}),
cardsByStack() {
return this.$store.getters.cardsByStack(this.stack.id)
return this.$store.getters.cardsByStack(this.stack.id).filter((card) => {
if (this.showArchived) {
return card.archived
}
return !card.archived
})
},
dragHandleSelector() {
return this.canEdit ? null : '.no-drag'