Browse Source

Merge pull request #5401 from C0rn3j/set-silver

Allow `silver` color to be set in List and Swimlane
Lauri Ojansivu 1 year ago
parent
commit
31b9970c04
2 changed files with 2 additions and 8 deletions
  1. 1 4
      models/lists.js
  2. 1 4
      models/swimlanes.js

+ 1 - 4
models/lists.js

@@ -146,7 +146,7 @@ Lists.attachSchema(
        */
       type: String,
       optional: true,
-      // silver is the default, so it is left out
+      // silver is the default
       allowedValues: ALLOWED_COLORS,
     },
     type: {
@@ -352,9 +352,6 @@ Lists.mutations({
   },
 
   setColor(newColor) {
-    if (newColor === 'silver') {
-      newColor = null;
-    }
     return {
       $set: {
         color: newColor,

+ 1 - 4
models/swimlanes.js

@@ -70,7 +70,7 @@ Swimlanes.attachSchema(
        */
       type: String,
       optional: true,
-      // silver is the default, so it is left out
+      // silver is the default
       allowedValues: ALLOWED_COLORS,
     },
     updatedAt: {
@@ -308,9 +308,6 @@ Swimlanes.mutations({
   },
 
   setColor(newColor) {
-    if (newColor === 'silver') {
-      newColor = null;
-    }
     return {
       $set: {
         color: newColor,