add: optional board description

This commit is contained in:
floatinghotpot 2015-12-07 11:22:30 +08:00
parent 011f53ad08
commit 21fa6fdc32
5 changed files with 15 additions and 0 deletions

View file

@ -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 }};
},