summaryrefslogtreecommitdiffstats
path: root/models/lists.js
diff options
context:
space:
mode:
Diffstat (limited to 'models/lists.js')
-rw-r--r--models/lists.js11
1 files changed, 1 insertions, 10 deletions
diff --git a/models/lists.js b/models/lists.js
index 29dd28fb..442b9ee1 100644
--- a/models/lists.js
+++ b/models/lists.js
@@ -105,16 +105,7 @@ Lists.mutations({
},
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 } };
+ return { $set: { "wipLimit.enabled": toggle } };
},
setWipLimit(limit) {