add filter option to show both completed and open

refactor element-ids to filter-option-

Signed-off-by: grnd-alt <salimbelakkaf@outlook.de>
This commit is contained in:
grnd-alt
2024-01-26 15:03:57 +01:00
parent a32755c460
commit 9a3521ba93
3 changed files with 36 additions and 16 deletions

View File

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