mirror of
https://github.com/wekan/wekan.git
synced 2025-12-20 09:20:12 +01:00
added i18n translation, minor fix
This commit is contained in:
parent
214fe6a61f
commit
f77da76c68
6 changed files with 16 additions and 7 deletions
|
|
@ -142,8 +142,8 @@ Meteor.methods({
|
|||
enableWipLimit(listId) {
|
||||
check(listId, String);
|
||||
const list = Lists.findOne({ _id: listId });
|
||||
if( list.getWipLimit() ){ // Necessary check to avoid exceptions for the case where the doc doesn't have the wipLimit field yet set
|
||||
list.toggleWipLimit(!list.wipLimit.enabled);
|
||||
if(list.getWipLimit()){ // Necessary check to avoid exceptions for the case where the doc doesn't have the wipLimit field yet set
|
||||
list.toggleWipLimit(!list.getWipLimit('enabled'));
|
||||
} else {
|
||||
list.toggleWipLimit(true); // First time toggle is always to 'true' because default is 'false'
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue