summaryrefslogtreecommitdiffstats
path: root/models/boards.js
diff options
context:
space:
mode:
authorNicu Tofan <nicu.tofan@gmail.com>2018-06-25 23:12:20 +0300
committerNicu Tofan <nicu.tofan@gmail.com>2018-06-26 14:32:51 +0300
commit94a52080cff14f7587c0ee837c1fca131cd6aff0 (patch)
tree9c4350d54b1d98d7ccfdcf09620e2fb8d5cf2c2d /models/boards.js
parentc9f70cf382707141561732a46dbd3e3e2f159e6e (diff)
downloadwekan-94a52080cff14f7587c0ee837c1fca131cd6aff0.tar.gz
wekan-94a52080cff14f7587c0ee837c1fca131cd6aff0.tar.bz2
wekan-94a52080cff14f7587c0ee837c1fca131cd6aff0.zip
Board level settings for subtasks
Diffstat (limited to 'models/boards.js')
-rw-r--r--models/boards.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/models/boards.js b/models/boards.js
index fce674ae..b5b0b0fc 100644
--- a/models/boards.js
+++ b/models/boards.js
@@ -161,6 +161,10 @@ Boards.attachSchema(new SimpleSchema({
optional: true,
defaultValue: null,
},
+ allowsSubtasks: {
+ type: Boolean,
+ defaultValue: true,
+ },
}));
@@ -473,6 +477,18 @@ Boards.mutations({
},
};
},
+
+ setAllowsSubtasks(allowsSubtasks) {
+ return { $set: { allowsSubtasks } };
+ },
+
+ setSubtasksDefaultBoardId(subtasksDefaultBoardId) {
+ return { $set: { subtasksDefaultBoardId } };
+ },
+
+ setSubtasksDefaultListId(subtasksDefaultListId) {
+ return { $set: { subtasksDefaultListId } };
+ },
});
if (Meteor.isServer) {