summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2020-02-07 13:58:43 +0200
committerLauri Ojansivu <x@xet7.org>2020-02-07 13:58:43 +0200
commit2fce02afbced07c6ff2b05786f159701c8b559e9 (patch)
tree4c38417f5745725b4fe88b268bd0fbd102204c9d /models
parenta58e6be78d82af991884427fec953e891e3c779d (diff)
downloadwekan-2fce02afbced07c6ff2b05786f159701c8b559e9.tar.gz
wekan-2fce02afbced07c6ff2b05786f159701c8b559e9.tar.bz2
wekan-2fce02afbced07c6ff2b05786f159701c8b559e9.zip
Add Feature: Card Settings/Show on card/Activities.
Fix: When in Card Settings hiding Comments, only adding new comment is hidden, not old comments. Thanks to xet7 ! Closes #2925
Diffstat (limited to 'models')
-rw-r--r--models/boards.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/models/boards.js b/models/boards.js
index af7b739f..ef074ad6 100644
--- a/models/boards.js
+++ b/models/boards.js
@@ -332,6 +332,14 @@ Boards.attachSchema(
defaultValue: true,
},
+ allowsActivities: {
+ /**
+ * Does the board allows comments?
+ */
+ type: Boolean,
+ defaultValue: true,
+ },
+
allowsLabels: {
/**
* Does the board allows labels?
@@ -1119,6 +1127,10 @@ Boards.mutations({
return { $set: { allowsComments } };
},
+ setAllowsActivities(allowsActivities) {
+ return { $set: { allowsActivities } };
+ },
+
setAllowsReceivedDate(allowsReceivedDate) {
return { $set: { allowsReceivedDate } };
},