diff options
author | Lauri Ojansivu <x@xet7.org> | 2016-11-29 04:05:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-29 04:05:29 +0200 |
commit | e41eeae09f533c63fbc04eb4e809d34b2c72fa82 (patch) | |
tree | 8a99f00b5c6c23422375a11328d1a8f899959514 /client/components/users/userHeader.js | |
parent | 56139e33078d2fa137a809801d4631b525dbca49 (diff) | |
parent | 35778d26737c5ca1702c6c1f3ca1be0a90a9e8b8 (diff) | |
download | wekan-e41eeae09f533c63fbc04eb4e809d34b2c72fa82.tar.gz wekan-e41eeae09f533c63fbc04eb4e809d34b2c72fa82.tar.bz2 wekan-e41eeae09f533c63fbc04eb4e809d34b2c72fa82.zip |
Merge pull request #31 from mario-orlicky/show-cards-count
New option to set up minimum limit to show cards count for each list …
Diffstat (limited to 'client/components/users/userHeader.js')
-rw-r--r-- | client/components/users/userHeader.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/client/components/users/userHeader.js b/client/components/users/userHeader.js index 1c390395..98053ed1 100644 --- a/client/components/users/userHeader.js +++ b/client/components/users/userHeader.js @@ -95,10 +95,21 @@ Template.changeSettingsPopup.helpers({ hiddenSystemMessages() { return Meteor.user().hasHiddenSystemMessages(); }, + showCardsCountAt() { + return Meteor.user().getLimitToShowCardsCount(); + }, }); Template.changeSettingsPopup.events({ 'click .js-toggle-system-messages'() { Meteor.call('toggleSystemMessages'); }, + 'click .js-apply-show-cards-at'(evt, tpl) { + evt.preventDefault(); + const minLimit = parseInt(tpl.$('#show-cards-count-at').val(), 10); + if (!isNaN(minLimit)) { + Meteor.call('changeLimitToShowCardsCount', minLimit); + Popup.back(); + } + }, }); |