Add Feature: allowing user to filter list in Filter function not just cards

This commit is contained in:
Sam X. Chen 2019-10-18 18:06:34 -04:00
parent bc2a20f04e
commit d2d4840758
2 changed files with 218 additions and 227 deletions

View file

@ -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();
},