summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--client/components/lists/listHeader.jade5
-rw-r--r--client/components/lists/listHeader.js10
2 files changed, 12 insertions, 3 deletions
diff --git a/client/components/lists/listHeader.jade b/client/components/lists/listHeader.jade
index 61771449..25ab8c20 100644
--- a/client/components/lists/listHeader.jade
+++ b/client/components/lists/listHeader.jade
@@ -15,9 +15,8 @@ template(name="listHeader")
|/#{wipLimit.value})
if showCardsCountForList cards.count
- = cards.count
- span
- | {{_ 'cards-count'}}
+ | 
+ p.quiet.small {{cardsCount}} {{_ 'cards-count'}}
if isMiniScreen
if currentList
if isWatching
diff --git a/client/components/lists/listHeader.js b/client/components/lists/listHeader.js
index 4b6bf196..abcc4639 100644
--- a/client/components/lists/listHeader.js
+++ b/client/components/lists/listHeader.js
@@ -22,6 +22,16 @@ BlazeComponent.extendComponent({
return Meteor.user().getLimitToShowCardsCount();
},
+ cardsCount() {
+ const list = Template.currentData();
+ let swimlaneId = '';
+ const boardView = Meteor.user().profile.boardView;
+ if (boardView === 'board-view-swimlanes')
+ swimlaneId = this.parentComponent().parentComponent().data()._id;
+
+ return list.cards(swimlaneId).count();
+ },
+
reachedWipLimit() {
const list = Template.currentData();
return list.getWipLimit('enabled') && list.getWipLimit('value') <= list.cards().count();