diff options
author | IgnatzHome <ignatz@maschath.de> | 2018-05-19 14:51:01 +0200 |
---|---|---|
committer | IgnatzHome <ignatz@maschath.de> | 2018-05-19 14:51:01 +0200 |
commit | 78317ef792c0de7435bbb8a0d3f6b413b2af9ab1 (patch) | |
tree | ae0dda702157f779c981ffda031e5e69e8999f96 /client/components/sidebar | |
parent | 1ab4f5b9134f77e24d88c7f09d274f37cfb2a994 (diff) | |
download | wekan-78317ef792c0de7435bbb8a0d3f6b413b2af9ab1.tar.gz wekan-78317ef792c0de7435bbb8a0d3f6b413b2af9ab1.tar.bz2 wekan-78317ef792c0de7435bbb8a0d3f6b413b2af9ab1.zip |
Filter on custom fields presence
Diffstat (limited to 'client/components/sidebar')
-rw-r--r-- | client/components/sidebar/sidebarFilters.jade | 5 | ||||
-rw-r--r-- | client/components/sidebar/sidebarFilters.js | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/client/components/sidebar/sidebarFilters.jade b/client/components/sidebar/sidebarFilters.jade index ef7b39a2..d1fdf824 100644 --- a/client/components/sidebar/sidebarFilters.jade +++ b/client/components/sidebar/sidebarFilters.jade @@ -40,12 +40,15 @@ template(name="filterSidebar") | (<span class="username">{{ username }}</span>) if Filter.members.isSelected _id i.fa.fa-check + hr ul.sidebar-list each currentBoard.customFields li - a.name.js-toggle-label-filter + a.name.js-toggle-custom-fields-filter span.sidebar-list-item-description {{ name }} + if Filter.customFields.isSelected _id + i.fa.fa-check if Filter.isActive hr a.sidebar-btn.js-clear-all diff --git a/client/components/sidebar/sidebarFilters.js b/client/components/sidebar/sidebarFilters.js index f02d3a4a..ba2633de 100644 --- a/client/components/sidebar/sidebarFilters.js +++ b/client/components/sidebar/sidebarFilters.js @@ -11,6 +11,11 @@ BlazeComponent.extendComponent({ Filter.members.toggle(this.currentData()._id); Filter.resetExceptions(); }, + 'click .js-toggle-custom-fields-filter'(evt) { + evt.preventDefault(); + Filter.customFields.toggle(this.currentData()._id); + Filter.resetExceptions(); + }, 'click .js-clear-all'(evt) { evt.preventDefault(); Filter.reset(); |