feature implemented, known bugs fixed

This commit is contained in:
amadilsons 2017-10-05 16:46:55 +02:00
parent c865bfe497
commit 214fe6a61f
6 changed files with 71 additions and 45 deletions

View file

@ -102,7 +102,8 @@ BlazeComponent.extendComponent({
reachedWipLimit() {
const list = Template.currentData();
return list.wipLimit.enabled && list.wipLimit.value == list.cards().count();
if( !list.getWipLimit() ) { return false; }
return list.getWipLimit('enabled') && list.getWipLimit('value') === list.cards().count();
},
events() {