PinCategory case insensitive

This commit is contained in:
barsdeveloper
2023-04-02 17:22:08 +02:00
parent b870517edc
commit 938924cbfb
4 changed files with 7 additions and 7 deletions

4
dist/ueblueprint.js vendored
View File

@@ -2225,7 +2225,7 @@ class PinEntity extends IEntity {
/** @return {CSSResult} */
pinColor() {
return Configuration.pinColor[this.getType()]
?? Configuration.pinColor[this.PinType$PinCategory]
?? Configuration.pinColor[this.PinType$PinCategory.toLowerCase()]
?? Configuration.pinColor["default"]
}
}
@@ -6936,7 +6936,7 @@ class PinTemplate extends ITemplate {
case "Set": return SVGIcon.set
case "Map": return SVGIcon.map
}
if (this.element.entity.PinType$PinCategory === "delegate") {
if (this.element.entity.PinType$PinCategory.toLocaleLowerCase() === "delegate") {
return SVGIcon.delegate
}
return SVGIcon.genericPin

File diff suppressed because one or more lines are too long

View File

@@ -311,7 +311,7 @@ export default class PinEntity extends IEntity {
/** @return {CSSResult} */
pinColor() {
return Configuration.pinColor[this.getType()]
?? Configuration.pinColor[this.PinType$PinCategory]
?? Configuration.pinColor[this.PinType$PinCategory.toLowerCase()]
?? Configuration.pinColor["default"]
}
}

View File

@@ -81,7 +81,7 @@ export default class PinTemplate extends ITemplate {
case "Set": return SVGIcon.set
case "Map": return SVGIcon.map
}
if (this.element.entity.PinType$PinCategory === "delegate") {
if (this.element.entity.PinType$PinCategory.toLocaleLowerCase() === "delegate") {
return SVGIcon.delegate
}
return SVGIcon.genericPin