introduce open filter

Signed-off-by: grnd-alt <salimbelakkaf@outlook.de>
This commit is contained in:
grnd-alt
2024-01-17 20:13:18 +01:00
parent e88be2c842
commit a4ccc89969
3 changed files with 22 additions and 5 deletions

View File

@@ -33,7 +33,9 @@ export default {
getters: {
cardsByStack: (state, getters, rootState) => (id) => {
return state.cards.filter((card) => {
const { tags, users, due, unassigned } = rootState.filter
const { tags, users, due, unassigned,open } = rootState.filter
if (open && card.done !== null) return false;
let allTagsMatch = true
let allUsersMatch = true