summaryrefslogtreecommitdiffstats
path: root/client/components/lists/listBody.js
diff options
context:
space:
mode:
authoramadilsons <joao.amado.95@gmail.com>2017-10-31 21:10:36 +0000
committeramadilsons <joao.amado.95@gmail.com>2017-10-31 21:10:36 +0000
commitfdd1aad80de336061d576b99d86fc94694131af6 (patch)
tree9012a3020cb724d37c7466d650912d9c9afc0cae /client/components/lists/listBody.js
parent8bf3f300ad46cf13f17176b0986a72c88191fbb1 (diff)
downloadwekan-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.js3
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() {