mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-03-16 21:37:36 +08:00
PinCategory case insensitive
This commit is contained in:
@@ -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"]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user