summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-10-25 17:31:56 +0300
committerLauri Ojansivu <x@xet7.org>2018-10-25 17:31:56 +0300
commit078bab405bcd38acfa9aad785e167ec37084bc8d (patch)
tree93833928cf4276498284957a8b15ee4649581af9
parent187b4632e64f3a44e6496cb904432598f291641a (diff)
parente57269ed57d5870083da91bdfde69f7ebe6bd139 (diff)
downloadwekan-078bab405bcd38acfa9aad785e167ec37084bc8d.tar.gz
wekan-078bab405bcd38acfa9aad785e167ec37084bc8d.tar.bz2
wekan-078bab405bcd38acfa9aad785e167ec37084bc8d.zip
Merge branch 'ui-fixes' of https://github.com/bentiss/wekan into bentiss-ui-fixes
-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'}}
+ |&nbsp;
+ 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();