diff options
author | Béranger Campardou <b.campardou@gmail.com> | 2017-01-13 11:16:37 +0100 |
---|---|---|
committer | Béranger Campardou <b.campardou@gmail.com> | 2017-01-13 11:16:37 +0100 |
commit | f7f5f4a35d1fc9e3d559dcf413f3f221937f07f8 (patch) | |
tree | 7915cb31bfd2328f219b6f88f6c86fcb4da7a920 /client/components/lists | |
parent | 5eda2c80f8de3f0b025f5233613cdbb409a73e94 (diff) | |
parent | a7aa7e931825c7ce133fc19588cb6550af8543d7 (diff) | |
download | wekan-f7f5f4a35d1fc9e3d559dcf413f3f221937f07f8.tar.gz wekan-f7f5f4a35d1fc9e3d559dcf413f3f221937f07f8.tar.bz2 wekan-f7f5f4a35d1fc9e3d559dcf413f3f221937f07f8.zip |
merge wefork
Diffstat (limited to 'client/components/lists')
-rw-r--r-- | client/components/lists/listHeader.jade | 4 | ||||
-rw-r--r-- | client/components/lists/listHeader.js | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/client/components/lists/listHeader.jade b/client/components/lists/listHeader.jade index aff059e8..29aa4282 100644 --- a/client/components/lists/listHeader.jade +++ b/client/components/lists/listHeader.jade @@ -6,6 +6,10 @@ template(name="listHeader") h2.list-header-name( class="{{#if currentUser.isBoardMember}}js-open-inlined-form is-editable{{/if}}") = title + if showCardsCountForList cards.count + = cards.count + span.lowercase + | {{_ 'cards'}} if currentUser.isBoardMember if isWatching i.list-header-watch-icon.fa.fa-eye diff --git a/client/components/lists/listHeader.js b/client/components/lists/listHeader.js index 6910c58a..65a464bb 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'), |