Merge branch 'ui-fixes' of https://github.com/bentiss/wekan into bentiss-ui-fixes

reviewable/pr1974/r1
Lauri Ojansivu 7 years ago
commit 078bab405b
  1. 5
      client/components/lists/listHeader.jade
  2. 10
      client/components/lists/listHeader.js

@ -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

@ -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();

Loading…
Cancel
Save