mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40: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
|
|
@ -16,7 +16,7 @@ template(name="listHeader")
|
||||||
|
|
||||||
if showCardsCountForList cards.count
|
if showCardsCountForList cards.count
|
||||||
|
|
|
|
||||||
p.quiet.small {{cards.count}} {{_ 'cards-count'}}
|
p.quiet.small {{cardsCount}} {{_ 'cards-count'}}
|
||||||
if isMiniScreen
|
if isMiniScreen
|
||||||
if currentList
|
if currentList
|
||||||
if isWatching
|
if isWatching
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,16 @@ BlazeComponent.extendComponent({
|
||||||
return Meteor.user().getLimitToShowCardsCount();
|
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() {
|
reachedWipLimit() {
|
||||||
const list = Template.currentData();
|
const list = Template.currentData();
|
||||||
return list.getWipLimit('enabled') && list.getWipLimit('value') <= list.cards().count();
|
return list.getWipLimit('enabled') && list.getWipLimit('value') <= list.cards().count();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue