mirror of
https://github.com/wekan/wekan.git
synced 2025-12-21 09:50:13 +01:00
on its way
This commit is contained in:
parent
a918d36533
commit
089dbf0cf6
7 changed files with 128 additions and 17 deletions
|
|
@ -43,9 +43,22 @@ Lists.attachSchema(new SimpleSchema({
|
|||
},
|
||||
},
|
||||
wipLimit: {
|
||||
type: Object,
|
||||
optional: true,
|
||||
},
|
||||
"wipLimit.value": {
|
||||
type: SimpleSchema.Integer,
|
||||
optional: true,
|
||||
},
|
||||
"wipLimit.enabled":{
|
||||
type: Boolean,
|
||||
autoValue() {
|
||||
if(this.isInsert){
|
||||
return false;
|
||||
}
|
||||
},
|
||||
optional: true,
|
||||
},
|
||||
}));
|
||||
|
||||
Lists.allow({
|
||||
|
|
@ -91,8 +104,21 @@ Lists.mutations({
|
|||
return { $set: { archived: false } };
|
||||
},
|
||||
|
||||
toggleWipLimit(toggle) {
|
||||
console.log("toggle " + this.wipLimit.enabled)
|
||||
return { $set: { "wipLimit.enabled": !this.wipLimit.enabled } };
|
||||
},
|
||||
|
||||
setWipLimitEnabled() {
|
||||
return { $set: { "wipLimit.enabled": true } };
|
||||
},
|
||||
|
||||
setWipLimitDisabled() {
|
||||
return { $set: { "wipLimit.enabled": false } };
|
||||
},
|
||||
|
||||
setWipLimit(limit) {
|
||||
return { $set: { wipLimit: limit } };
|
||||
return { $set: { "wipLimit.value": limit } };
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue