summaryrefslogtreecommitdiffstats
path: root/models/cards.js
diff options
context:
space:
mode:
authorRJevnikar <12701645+rjevnikar@users.noreply.github.com>2018-06-05 20:23:29 +0000
committerRJevnikar <12701645+rjevnikar@users.noreply.github.com>2018-06-05 20:23:29 +0000
commit3ce3fa74b350ff1af73b0fffddaeff4b0f126e2c (patch)
tree78d501d18a4302578b84683b47e8933b8df4f72b /models/cards.js
parentd6eff2a07453cad87623955905ddb6ce247aa719 (diff)
downloadwekan-3ce3fa74b350ff1af73b0fffddaeff4b0f126e2c.tar.gz
wekan-3ce3fa74b350ff1af73b0fffddaeff4b0f126e2c.tar.bz2
wekan-3ce3fa74b350ff1af73b0fffddaeff4b0f126e2c.zip
Add additional label colours (from pull by JamesLavin), Add Assigned & Requested By text fields.
Diffstat (limited to 'models/cards.js')
-rw-r--r--models/cards.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/models/cards.js b/models/cards.js
index 6a33fa1a..dd3ac02d 100644
--- a/models/cards.js
+++ b/models/cards.js
@@ -66,6 +66,14 @@ Cards.attachSchema(new SimpleSchema({
type: String,
optional: true,
},
+ requestedBy: {
+ type: String,
+ optional: true
+ },
+ assignedBy: {
+ type: String,
+ optional: true
+ },
labelIds: {
type: [String],
optional: true,
@@ -268,6 +276,14 @@ Cards.mutations({
return {$set: {description}};
},
+ setRequestedBy(requestedBy) {
+ return {$set: {requestedBy}};
+ },
+
+ setAssignedBy(assignedBy) {
+ return {$set: {assignedBy}};
+ },
+
move(swimlaneId, listId, sortIndex) {
const list = Lists.findOne(listId);
const mutatedFields = {