diff options
author | amadilsons <joao.amado.95@gmail.com> | 2017-10-31 21:10:36 +0000 |
---|---|---|
committer | amadilsons <joao.amado.95@gmail.com> | 2017-10-31 21:10:36 +0000 |
commit | fdd1aad80de336061d576b99d86fc94694131af6 (patch) | |
tree | 9012a3020cb724d37c7466d650912d9c9afc0cae /client/components/lists/listBody.js | |
parent | 8bf3f300ad46cf13f17176b0986a72c88191fbb1 (diff) | |
download | wekan-fdd1aad80de336061d576b99d86fc94694131af6.tar.gz wekan-fdd1aad80de336061d576b99d86fc94694131af6.tar.bz2 wekan-fdd1aad80de336061d576b99d86fc94694131af6.zip |
added soft wip limit feature, fixed wipLimit=0 bug (??)
Diffstat (limited to 'client/components/lists/listBody.js')
-rw-r--r-- | client/components/lists/listBody.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/client/components/lists/listBody.js b/client/components/lists/listBody.js index 22ed9e57..fe2f1630 100644 --- a/client/components/lists/listBody.js +++ b/client/components/lists/listBody.js @@ -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() { |