mirror of
https://github.com/wekan/wekan.git
synced 2025-12-18 00:10:13 +01:00
Try to fix Color picker of lists is empty. Part 6.
Thanks to bronger and xet7 ! Related #3418
This commit is contained in:
parent
ff8d899266
commit
4649553c5e
2 changed files with 6 additions and 2 deletions
|
|
@ -153,7 +153,7 @@ template(name="setListColorPopup")
|
||||||
form.edit-label
|
form.edit-label
|
||||||
.palette-colors: each colors
|
.palette-colors: each colors
|
||||||
// note: we use the swimlane palette to have more than just the border
|
// note: we use the swimlane palette to have more than just the border
|
||||||
span.card-label.palette-color.js-palette-color(class=colorClass)
|
span.card-label.palette-color.js-palette-color(class="card-details-{{color}}")
|
||||||
if(isSelected color)
|
if(isSelected color)
|
||||||
i.fa.fa-check
|
i.fa.fa-check
|
||||||
button.primary.confirm.js-submit {{_ 'save'}}
|
button.primary.confirm.js-submit {{_ 'save'}}
|
||||||
|
|
|
||||||
|
|
@ -279,7 +279,11 @@ BlazeComponent.extendComponent({
|
||||||
},
|
},
|
||||||
|
|
||||||
isSelected(color) {
|
isSelected(color) {
|
||||||
return this.currentColor.get() === color;
|
if (this.currentColor.get() === null) {
|
||||||
|
return color === 'white';
|
||||||
|
} else {
|
||||||
|
return this.currentColor.get() === color;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
events() {
|
events() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue