diff options
author | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2019-01-22 23:35:12 +0100 |
---|---|---|
committer | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2019-01-24 16:51:06 +0100 |
commit | 6e9bad57723919dc3fd63a5748902e9049320603 (patch) | |
tree | eede4ef6e004aed94909ddf02a48ca9bd97742a0 /client/components/cards/cardDetails.js | |
parent | 5769d438a05d01bd5f35cd5830b7ad3c03a21ed2 (diff) | |
download | wekan-6e9bad57723919dc3fd63a5748902e9049320603.tar.gz wekan-6e9bad57723919dc3fd63a5748902e9049320603.tar.bz2 wekan-6e9bad57723919dc3fd63a5748902e9049320603.zip |
IFTTT: card colors: add an actual white entry
To unset the color through the IFTTT, we need a white entry.
However, we do not want to show the white enry in the hamburger
`Set Color` entry.
We can also give the `white` capability to the API, it won't hurt
and be more straightforward.
Diffstat (limited to 'client/components/cards/cardDetails.js')
-rw-r--r-- | client/components/cards/cardDetails.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js index cc04b830..04620084 100644 --- a/client/components/cards/cardDetails.js +++ b/client/components/cards/cardDetails.js @@ -601,6 +601,9 @@ BlazeComponent.extendComponent({ }, isSelected(color) { + if (this.currentColor.get() === null) { + return color === 'white'; + } return this.currentColor.get() === color; }, |