summaryrefslogtreecommitdiffstats
path: root/client/components/cards/cardDetails.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-01-25 19:05:09 +0200
committerGitHub <noreply@github.com>2019-01-25 19:05:09 +0200
commitba15526516e1754385d2d6404d64ae9cead3ce95 (patch)
tree29834be1c70610ea3373e03c64891a6b35569fd1 /client/components/cards/cardDetails.js
parent542cc75dc4a4bf392cac72345ab013cf59c67ad3 (diff)
parent6c3dbc3c6f52a42ddbeeaec9bbfcc82c1c839f7d (diff)
downloadwekan-ba15526516e1754385d2d6404d64ae9cead3ce95.tar.gz
wekan-ba15526516e1754385d2d6404d64ae9cead3ce95.tar.bz2
wekan-ba15526516e1754385d2d6404d64ae9cead3ce95.zip
Merge pull request #2126 from bentiss/color-swimlanes
Color for swimlanes
Diffstat (limited to 'client/components/cards/cardDetails.js')
-rw-r--r--client/components/cards/cardDetails.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js
index cc04b830..79a686a7 100644
--- a/client/components/cards/cardDetails.js
+++ b/client/components/cards/cardDetails.js
@@ -27,7 +27,6 @@ BlazeComponent.extendComponent({
onCreated() {
this.currentBoard = Boards.findOne(Session.get('currentBoard'));
this.isLoaded = new ReactiveVar(false);
- this.currentColor = new ReactiveVar(this.data().color);
const boardBody = this.parentComponent().parentComponent();
//in Miniview parent is Board, not BoardBody.
if (boardBody !== null) {
@@ -601,6 +600,9 @@ BlazeComponent.extendComponent({
},
isSelected(color) {
+ if (this.currentColor.get() === null) {
+ return color === 'white';
+ }
return this.currentColor.get() === color;
},