diff options
author | Lauri Ojansivu <x@xet7.org> | 2018-10-25 17:31:56 +0300 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2018-10-25 17:31:56 +0300 |
commit | 078bab405bcd38acfa9aad785e167ec37084bc8d (patch) | |
tree | 93833928cf4276498284957a8b15ee4649581af9 | |
parent | 187b4632e64f3a44e6496cb904432598f291641a (diff) | |
parent | e57269ed57d5870083da91bdfde69f7ebe6bd139 (diff) | |
download | wekan-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.jade | 5 | ||||
-rw-r--r-- | client/components/lists/listHeader.js | 10 |
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(); |