introduce done filter

Signed-off-by: grnd-alt <salimbelakkaf@outlook.de>
This commit is contained in:
grnd-alt
2024-01-17 20:37:44 +01:00
parent a4ccc89969
commit f246c68fac
3 changed files with 36 additions and 17 deletions

View File

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