summaryrefslogtreecommitdiffstats
path: root/models/boards.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2020-02-12 02:08:29 +0200
committerLauri Ojansivu <x@xet7.org>2020-02-12 02:08:29 +0200
commite89965f6422fd95b4ad2112ae407b1dde4853510 (patch)
tree755ce1eab44ad01a63e231566ec84777d3b928a9 /models/boards.js
parentb4e55830652d2186b2a52f3c34fca05ba175c223 (diff)
downloadwekan-e89965f6422fd95b4ad2112ae407b1dde4853510.tar.gz
wekan-e89965f6422fd95b4ad2112ae407b1dde4853510.tar.bz2
wekan-e89965f6422fd95b4ad2112ae407b1dde4853510.zip
Remove card element grouping to create compact card layout.
Card Settings / Show on Card: Description Title and Description Text. Thanks to e-stoniauk, 2020product and xet7 ! Fixes https://github.com/wekan/wekan/pull/2922
Diffstat (limited to 'models/boards.js')
-rw-r--r--models/boards.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/models/boards.js b/models/boards.js
index ef074ad6..8862f301 100644
--- a/models/boards.js
+++ b/models/boards.js
@@ -332,6 +332,22 @@ Boards.attachSchema(
defaultValue: true,
},
+ allowsDescriptionTitle: {
+ /**
+ * Does the board allows description title?
+ */
+ type: Boolean,
+ defaultValue: true,
+ },
+
+ allowsDescriptionText: {
+ /**
+ * Does the board allows description text?
+ */
+ type: Boolean,
+ defaultValue: true,
+ },
+
allowsActivities: {
/**
* Does the board allows comments?
@@ -1127,6 +1143,14 @@ Boards.mutations({
return { $set: { allowsComments } };
},
+ setAllowsDescriptionTitle(allowsDescriptionTitle) {
+ return { $set: { allowsDescriptionTitle } };
+ },
+
+ setAllowsDescriptionText(allowsDescriptionText) {
+ return { $set: { allowsDescriptionText } };
+ },
+
setAllowsActivities(allowsActivities) {
return { $set: { allowsActivities } };
},