From 3507c6565bb16b5f45c6f269f7376902f8b1ff37 Mon Sep 17 00:00:00 2001 From: Kenton Hamaluik Date: Sat, 10 Oct 2015 23:08:50 -0600 Subject: Made colours light grey in the labels dropdown --- client/components/lists/listBody.js | 7 ++++++- package.json | 11 ----------- 2 files changed, 6 insertions(+), 12 deletions(-) delete mode 100644 package.json diff --git a/client/components/lists/listBody.js b/client/components/lists/listBody.js index e248f203..a60ffe25 100644 --- a/client/components/lists/listBody.js +++ b/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) + ? `${value}` + : value; return (colorName && colorName !== '') ? `
${value}` + title="${value}"> ${valueSpan}` : value; }, replace(label) { diff --git a/package.json b/package.json deleted file mode 100644 index 8c9c7ff7..00000000 --- a/package.json +++ /dev/null @@ -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" - } -} \ No newline at end of file -- cgit v1.2.3-1-g7c22