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

@ -182,7 +182,7 @@ Cards.helpers({
canBeRestored() {
const list = Lists.findOne({_id: this.listId});
if(list.wipLimit.enabled && list.wipLimit.value == list.cards().count()){
if(list.getWipLimit() && list.getWipLimit('enabled') && list.getWipLimit('value') === list.cards().count()){
return false;
}
return true;