mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Limited number of cards highlighting to true overbooking.
Addresses <https://github.com/wekan/wekan/issues/3467>.
This commit is contained in:
parent
dc4a0bb462
commit
5476a5984c
2 changed files with 9 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ template(name="listHeader")
|
||||||
= title
|
= title
|
||||||
if wipLimit.enabled
|
if wipLimit.enabled
|
||||||
| (
|
| (
|
||||||
span(class="{{#if reachedWipLimit}}highlight{{/if}}") {{cards.count}}
|
span(class="{{#if exceededWipLimit}}highlight{{/if}}") {{cards.count}}
|
||||||
|/#{wipLimit.value})
|
|/#{wipLimit.value})
|
||||||
|
|
||||||
if showCardsCountForList cards.count
|
if showCardsCountForList cards.count
|
||||||
|
|
|
||||||
|
|
@ -72,6 +72,14 @@ BlazeComponent.extendComponent({
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
exceededWipLimit() {
|
||||||
|
const list = Template.currentData();
|
||||||
|
return (
|
||||||
|
list.getWipLimit('enabled') &&
|
||||||
|
list.getWipLimit('value') < list.cards().count()
|
||||||
|
);
|
||||||
|
},
|
||||||
|
|
||||||
showCardsCountForList(count) {
|
showCardsCountForList(count) {
|
||||||
const limit = this.limitToShowCardsCount();
|
const limit = this.limitToShowCardsCount();
|
||||||
return limit > 0 && count > limit;
|
return limit > 0 && count > limit;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue