summaryrefslogtreecommitdiffstats
path: root/client/components/lists/listHeader.js
diff options
context:
space:
mode:
authoramadilsons <joao.amado.95@gmail.com>2017-10-05 17:22:03 +0200
committeramadilsons <joao.amado.95@gmail.com>2017-10-05 17:22:03 +0200
commitf77da76c682ec7ad1b5e141d113d4b74371f46ae (patch)
treeae82531e30e26596ebc988b2abccb5dc687b72fe /client/components/lists/listHeader.js
parent214fe6a61f60513d3ddfc9eee423c1b932ff8463 (diff)
downloadwekan-f77da76c682ec7ad1b5e141d113d4b74371f46ae.tar.gz
wekan-f77da76c682ec7ad1b5e141d113d4b74371f46ae.tar.bz2
wekan-f77da76c682ec7ad1b5e141d113d4b74371f46ae.zip
added i18n translation, minor fix
Diffstat (limited to 'client/components/lists/listHeader.js')
-rw-r--r--client/components/lists/listHeader.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/components/lists/listHeader.js b/client/components/lists/listHeader.js
index 361f69cf..9974c788 100644
--- a/client/components/lists/listHeader.js
+++ b/client/components/lists/listHeader.js
@@ -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() {