瀏覽代碼

Allow `silver` color to be set in List and Swimlane

Martin Rys 1 年之前
父節點
當前提交
baf0edc51e
共有 2 個文件被更改,包括 2 次插入8 次删除
  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: {
@@ -338,9 +338,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: {
@@ -293,9 +293,6 @@ Swimlanes.mutations({
   },
 
   setColor(newColor) {
-    if (newColor === 'silver') {
-      newColor = null;
-    }
     return {
       $set: {
         color: newColor,