summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorfloatinghotpot <rjfun.mobile@gmail.com>2015-12-07 11:22:30 +0800
committerfloatinghotpot <rjfun.mobile@gmail.com>2015-12-07 11:22:30 +0800
commit21fa6fdc327757c29364a0e59fa37d8b279411df (patch)
tree7e62450e80983ac94aed74bf70c1a449b7b4b1f7 /models
parent011f53ad0828c0979d15e232abf501180c741288 (diff)
downloadwekan-21fa6fdc327757c29364a0e59fa37d8b279411df.tar.gz
wekan-21fa6fdc327757c29364a0e59fa37d8b279411df.tar.bz2
wekan-21fa6fdc327757c29364a0e59fa37d8b279411df.zip
add: optional board description
Diffstat (limited to 'models')
-rw-r--r--models/boards.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/models/boards.js b/models/boards.js
index c10e51a3..6aba0b1e 100644
--- a/models/boards.js
+++ b/models/boards.js
@@ -71,6 +71,10 @@ Boards.attachSchema(new SimpleSchema({
'midnight',
],
},
+ description: {
+ type: String,
+ optional: true,
+ },
}));
@@ -141,6 +145,10 @@ Boards.mutations({
return { $set: { title }};
},
+ setDesciption(description) {
+ return { $set: {description} };
+ },
+
setColor(color) {
return { $set: { color }};
},