diff options
Diffstat (limited to 'models/boards.js')
-rw-r--r-- | models/boards.js | 101 |
1 files changed, 97 insertions, 4 deletions
diff --git a/models/boards.js b/models/boards.js index 121272ec..69cf86fe 100644 --- a/models/boards.js +++ b/models/boards.js @@ -308,6 +308,70 @@ Boards.attachSchema( defaultValue: true, }, + allowsAttachments: { + /** + * Does the board allows attachments? + */ + type: Boolean, + defaultValue: true, + }, + + allowsChecklists: { + /** + * Does the board allows checklists? + */ + type: Boolean, + defaultValue: true, + }, + + allowsComments: { + /** + * Does the board allows comments? + */ + type: Boolean, + defaultValue: true, + }, + + allowsLabels: { + /** + * Does the board allows labels? + */ + type: Boolean, + defaultValue: true, + }, + + allowsAssignee: { + /** + * Does the board allows assignee? + */ + type: Boolean, + defaultValue: true, + }, + + allowsMembers: { + /** + * Does the board allows members? + */ + type: Boolean, + defaultValue: true, + }, + + allowsRequestedBy: { + /** + * Does the board allows requested by? + */ + type: Boolean, + defaultValue: true, + }, + + allowsAssignedBy: { + /** + * Does the board allows requested by? + */ + type: Boolean, + defaultValue: true, + }, + allowsReceivedDate: { /** * Does the board allows received date? @@ -757,7 +821,7 @@ Boards.helpers({ return Boards.findOne(this.getDefaultSubtasksBoardId()); }, -//Date Settings option such as received date, start date and so on. + //Date Settings option such as received date, start date and so on. getDefaultDateSettingsBoardId() { if ( this.dateSettingsDefaultBoardId === null || @@ -1023,21 +1087,50 @@ Boards.mutations({ return { $set: { allowsSubtasks } }; }, + setAllowsMembers(allowsMembers) { + return { $set: { allowsMembers } }; + }, + + setAllowsChecklists(allowsChecklists) { + return { $set: { allowsChecklists } }; + }, + + setAllowsAssignee(allowsComments) { + return { $set: { allowsComments } }; + }, + + setAllowsAssignedBy(allowsAssignedBy) { + return { $set: { allowsAssignedBy } }; + }, + + setAllowsRequestedBy(allowsRequestedBy) { + return { $set: { allowsRequestedBy } }; + }, + + setAllowsAttachments(allowsAttachments) { + return { $set: { allowsAttachments } }; + }, + + setAllowsLabels(allowsLabels) { + return { $set: { allowsLabels } }; + }, + + setAllowsAssignee(allowsAssignee) { + return { $set: { allowsAssignee } }; + }, + setAllowsReceivedDate(allowsReceivedDate) { return { $set: { allowsReceivedDate } }; }, - setAllowsStartDate(allowsStartDate) { return { $set: { allowsStartDate } }; }, - setAllowsEndDate(allowsEndDate) { return { $set: { allowsEndDate } }; }, - setAllowsDueDate(allowsDueDate) { return { $set: { allowsDueDate } }; }, |