mirror of
https://github.com/wekan/wekan.git
synced 2025-12-18 00:10:13 +01:00
added soft wip limit feature, fixed wipLimit=0 bug (??)
This commit is contained in:
parent
8bf3f300ad
commit
fdd1aad80d
5 changed files with 70 additions and 36 deletions
|
|
@ -102,8 +102,7 @@ BlazeComponent.extendComponent({
|
|||
|
||||
reachedWipLimit() {
|
||||
const list = Template.currentData();
|
||||
if( !list.getWipLimit() ) { return false; }
|
||||
return list.getWipLimit('enabled') && list.getWipLimit('value') === list.cards().count();
|
||||
return !list.getWipLimit('soft') && list.getWipLimit('enabled') && list.getWipLimit('value') <= list.cards().count();
|
||||
},
|
||||
|
||||
events() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue