mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Allow silver color to be set in List and Swimlane
This commit is contained in:
parent
cedd10e067
commit
baf0edc51e
2 changed files with 2 additions and 8 deletions
|
|
@ -146,7 +146,7 @@ Lists.attachSchema(
|
||||||
*/
|
*/
|
||||||
type: String,
|
type: String,
|
||||||
optional: true,
|
optional: true,
|
||||||
// silver is the default, so it is left out
|
// silver is the default
|
||||||
allowedValues: ALLOWED_COLORS,
|
allowedValues: ALLOWED_COLORS,
|
||||||
},
|
},
|
||||||
type: {
|
type: {
|
||||||
|
|
@ -338,9 +338,6 @@ Lists.mutations({
|
||||||
},
|
},
|
||||||
|
|
||||||
setColor(newColor) {
|
setColor(newColor) {
|
||||||
if (newColor === 'silver') {
|
|
||||||
newColor = null;
|
|
||||||
}
|
|
||||||
return {
|
return {
|
||||||
$set: {
|
$set: {
|
||||||
color: newColor,
|
color: newColor,
|
||||||
|
|
|
||||||
|
|
@ -70,7 +70,7 @@ Swimlanes.attachSchema(
|
||||||
*/
|
*/
|
||||||
type: String,
|
type: String,
|
||||||
optional: true,
|
optional: true,
|
||||||
// silver is the default, so it is left out
|
// silver is the default
|
||||||
allowedValues: ALLOWED_COLORS,
|
allowedValues: ALLOWED_COLORS,
|
||||||
},
|
},
|
||||||
updatedAt: {
|
updatedAt: {
|
||||||
|
|
@ -293,9 +293,6 @@ Swimlanes.mutations({
|
||||||
},
|
},
|
||||||
|
|
||||||
setColor(newColor) {
|
setColor(newColor) {
|
||||||
if (newColor === 'silver') {
|
|
||||||
newColor = null;
|
|
||||||
}
|
|
||||||
return {
|
return {
|
||||||
$set: {
|
$set: {
|
||||||
color: newColor,
|
color: newColor,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue