mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
UI: lists: only output the number of cards for each swimlane
This commit is contained in:
parent
05e0fb8fbe
commit
e57269ed57
2 changed files with 11 additions and 1 deletions
|
|
@ -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