added i18n translation, minor fix

This commit is contained in:
amadilsons 2017-10-05 17:22:03 +02:00
parent 214fe6a61f
commit f77da76c68
6 changed files with 16 additions and 7 deletions

View file

@ -93,10 +93,10 @@ BlazeComponent.extendComponent({
enableWipLimit() {
const list = Template.currentData();
// Prevent user from using previously stored wipLimit.value if it is less than the current number of cards in the list
if(list.getWipLimit() && !list.wipLimit.enabled && list.wipLimit.value < list.cards().count()){
if(list.getWipLimit() && !list.getWipLimit('enabled') && list.getWipLimit('value') < list.cards().count()){
list.setWipLimit(list.cards().count());
}
Meteor.call('enableWipLimit', Template.currentData()._id);
Meteor.call('enableWipLimit', list._id);
},
isWipLimitEnabled() {