simplified logic avoid filtering for unassigned and assigned at the same time
Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
This commit is contained in:
@@ -260,6 +260,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
setFilter() {
|
setFilter() {
|
||||||
|
if (this.filter.users.length > 0) {
|
||||||
|
this.filter.unassigned = false
|
||||||
|
}
|
||||||
this.$nextTick(() => this.$store.dispatch('setFilter', { ...this.filter }))
|
this.$nextTick(() => this.$store.dispatch('setFilter', { ...this.filter }))
|
||||||
},
|
},
|
||||||
toggleNav() {
|
toggleNav() {
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ export default {
|
|||||||
const { tags, users, due, unassigned } = rootState.filter
|
const { tags, users, due, unassigned } = rootState.filter
|
||||||
let allTagsMatch = true
|
let allTagsMatch = true
|
||||||
let allUsersMatch = true
|
let allUsersMatch = true
|
||||||
let allUnassigned = true
|
|
||||||
|
|
||||||
if (tags.length > 0) {
|
if (tags.length > 0) {
|
||||||
tags.forEach((tag) => {
|
tags.forEach((tag) => {
|
||||||
@@ -59,15 +58,9 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (unassigned) {
|
if (unassigned && card.assignedUsers.length > 0) {
|
||||||
if (card.assignedUsers.length > 0) {
|
|
||||||
allUnassigned = false
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!allUnassigned) {
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (due !== '') {
|
if (due !== '') {
|
||||||
const datediffHour = ((new Date(card.duedate) - new Date()) / 3600 / 1000)
|
const datediffHour = ((new Date(card.duedate) - new Date()) / 3600 / 1000)
|
||||||
|
|||||||
Reference in New Issue
Block a user