mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-03 23:55:04 +08:00
21 lines
642 B
JavaScript
21 lines
642 B
JavaScript
import { html } from "lit"
|
|
import SVGIcon from "../../SVGIcon.js"
|
|
import PinTemplate from "./PinTemplate.js"
|
|
|
|
export default class ExecPinTemplate extends PinTemplate {
|
|
|
|
renderIcon() {
|
|
return SVGIcon.execPin
|
|
}
|
|
|
|
renderName() {
|
|
let pinName = this.element.entity.PinName
|
|
if (this.element.entity.PinFriendlyName) {
|
|
pinName = this.element.entity.PinFriendlyName.toString()
|
|
} else if (pinName === "execute" || pinName === "then") {
|
|
return html``
|
|
}
|
|
return html`<span class="ueb-pin-name ueb-ellipsis-nowrap-text">${this.element.getPinDisplayName()}</span>`
|
|
}
|
|
}
|