Merge pull request #5401 from C0rn3j/set-silver

Allow `silver` color to be set in List and Swimlane
This commit is contained in:
Lauri Ojansivu 2024-05-04 23:14:06 +03:00 committed by GitHub
commit 31b9970c04
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 8 deletions

View file

@ -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: {
@ -352,9 +352,6 @@ Lists.mutations({
}, },
setColor(newColor) { setColor(newColor) {
if (newColor === 'silver') {
newColor = null;
}
return { return {
$set: { $set: {
color: newColor, color: newColor,

View file

@ -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: {
@ -308,9 +308,6 @@ Swimlanes.mutations({
}, },
setColor(newColor) { setColor(newColor) {
if (newColor === 'silver') {
newColor = null;
}
return { return {
$set: { $set: {
color: newColor, color: newColor,