2
0
Эх сурвалжийг харах

Made colours light grey in the labels dropdown

Kenton Hamaluik 9 жил өмнө
parent
commit
3507c6565b

+ 6 - 1
client/components/lists/listBody.js

@@ -214,14 +214,19 @@ BlazeComponent.extendComponent({
           }));
         },
         template(value) {
+          // XXX the following is duplicated from editor.js and should be
+          // abstracted to keep things DRY
           // add a "colour badge" in front of the label name
           // but first, get the colour's name from its value
           const colorName = currentBoard.labels.find((label) => {
             return value === label.name || value === label.color;
           }).color;
+          const valueSpan = (colorName === value)
+                            ? `<span class="quiet">${value}</span>`
+                            : value;
           return (colorName && colorName !== '')
                  ? `<div class="minicard-label card-label-${colorName}"
-                    title="${value}"></div> ${value}`
+                    title="${value}"></div> ${valueSpan}`
                  : value;
         },
         replace(label) {

+ 0 - 11
package.json

@@ -1,11 +0,0 @@
-{
-  "name": "Wekan",
-  "description": "The open-source Trello-like kanban",
-  "repository": "https://github.com/FuzzyWuzzie/wekan",
-  "logo": "https://raw.githubusercontent.com/wekan/wekan/master/meta/icons/wekan-150.png",
-  "keywords": ["productivity", "tool", "team", "kanban"],
-  "website": "http://wekan.io",
-  "engines": {
-    "node": "0.10.40"
-  }
-}