From 3368ebf067779d1f306a2447e2357e34213f0126 Mon Sep 17 00:00:00 2001 From: Benjamin Tissoires Date: Tue, 22 Jan 2019 10:35:09 +0100 Subject: color: add option in hamburger to change the card color Currently only dropdown, no palette Fixes: #428 --- models/cards.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'models/cards.js') 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: { -- cgit v1.2.3-1-g7c22