summaryrefslogtreecommitdiffstats
path: root/models/boards.js
diff options
context:
space:
mode:
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) {