diff options
author | Mario Orlicky <orlickymario@gmail.com> | 2016-11-25 21:45:11 +0100 |
---|---|---|
committer | Mario Orlicky <orlickymario@gmail.com> | 2016-11-25 21:45:11 +0100 |
commit | 606dbbbbf2e5ef4bccaadc4584d05c67d7148fc8 (patch) | |
tree | b2a7b837a96cbf775cf3dfa3aa3136abb7249ec5 /client/components/lists/listHeader.js | |
parent | 1ad41072010fb59fdbace80a0aa049634074dac1 (diff) | |
download | wekan-606dbbbbf2e5ef4bccaadc4584d05c67d7148fc8.tar.gz wekan-606dbbbbf2e5ef4bccaadc4584d05c67d7148fc8.tar.bz2 wekan-606dbbbbf2e5ef4bccaadc4584d05c67d7148fc8.zip |
New option to set up minimum limit to show cards count for each list in board
Diffstat (limited to 'client/components/lists/listHeader.js')
-rw-r--r-- | client/components/lists/listHeader.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/client/components/lists/listHeader.js b/client/components/lists/listHeader.js index c7ae8e62..4d468f21 100644 --- a/client/components/lists/listHeader.js +++ b/client/components/lists/listHeader.js @@ -13,6 +13,14 @@ BlazeComponent.extendComponent({ return list.findWatcher(Meteor.userId()); }, + limitToShowCardsCount() { + return Meteor.user().getLimitToShowCardsCount(); + }, + + showCardsCountForList(count) { + return count > this.limitToShowCardsCount(); + }, + events() { return [{ 'click .js-open-list-menu': Popup.open('listAction'), |