mirror of
https://github.com/wekan/wekan.git
synced 2026-01-27 19:56:09 +01:00
Merge branch 'bentiss-ui-fixes' into edge
This commit is contained in:
commit
c72b3a870e
2 changed files with 12 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue