summaryrefslogtreecommitdiffstats
path: root/models/cards.js
diff options
context:
space:
mode:
Diffstat (limited to 'models/cards.js')
-rw-r--r--models/cards.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/models/cards.js b/models/cards.js
index 7251faeb..c5d9bf05 100644
--- a/models/cards.js
+++ b/models/cards.js
@@ -1033,6 +1033,17 @@ Cards.mutations({
}
},
+ setColor(newColor) {
+ if (newColor === 'white') {
+ newColor = null;
+ }
+ return {
+ $set: {
+ color: newColor,
+ },
+ };
+ },
+
assignMember(memberId) {
return {
$addToSet: {