summaryrefslogtreecommitdiffstats
path: root/client/lib
diff options
context:
space:
mode:
authorSam X. Chen <sam.xi.chen@gmail.com>2019-10-18 18:06:34 -0400
committerSam X. Chen <sam.xi.chen@gmail.com>2019-10-18 18:06:34 -0400
commitd2d4840758b0f5aed7feb4f6a459bb2b2d1a3f0b (patch)
tree6b4aad3b7cea2e7362f21042a1269615733e3e56 /client/lib
parentbc2a20f04e32607f8488a9cecd815647fb43e40e (diff)
downloadwekan-d2d4840758b0f5aed7feb4f6a459bb2b2d1a3f0b.tar.gz
wekan-d2d4840758b0f5aed7feb4f6a459bb2b2d1a3f0b.tar.bz2
wekan-d2d4840758b0f5aed7feb4f6a459bb2b2d1a3f0b.zip
Add Feature: allowing user to filter list in Filter function not just cards
Diffstat (limited to 'client/lib')
-rw-r--r--client/lib/filter.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/client/lib/filter.js b/client/lib/filter.js
index b0695625..9ddea65c 100644
--- a/client/lib/filter.js
+++ b/client/lib/filter.js
@@ -465,14 +465,7 @@ Filter = {
advanced: new AdvancedFilter(),
lists: new AdvancedFilter(), // we need the ability to filter list by name as well
- _fields: [
- 'labelIds',
- 'members',
- 'archive',
- 'hideEmpty',
- 'customFields',
- 'lists',
- ],
+ _fields: ['labelIds', 'members', 'archive', 'hideEmpty', 'customFields'],
// We don't filter cards that have been added after the last filter change. To
// implement this we keep the id of these cards in this `_exceptions` fields
@@ -549,6 +542,7 @@ Filter = {
const filter = this[fieldName];
filter.reset();
});
+ this.lists.reset();
this.advanced.reset();
this.resetExceptions();
},