most work concluded, code needs clean up, further testing required

This commit is contained in:
amadilsons 2017-10-04 17:48:37 +02:00
parent 089dbf0cf6
commit c865bfe497
9 changed files with 72 additions and 88 deletions

View file

@ -179,6 +179,14 @@ Cards.helpers({
cardId: this._id,
});
},
canBeRestored() {
const list = Lists.findOne({_id: this.listId});
if(list.wipLimit.enabled && list.wipLimit.value == list.cards().count()){
return false;
}
return true;
},
});
Cards.mutations({