mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-12 22:47:30 +08:00
Move pin templates to subdirectory
This commit is contained in:
23
js/template/pin/ExecPinTemplate.js
Normal file
23
js/template/pin/ExecPinTemplate.js
Normal file
@@ -0,0 +1,23 @@
|
||||
import { html } from "lit"
|
||||
import PinTemplate from "./PinTemplate"
|
||||
import SVGIcon from "../../SVGIcon"
|
||||
import Utility from "../../Utility"
|
||||
|
||||
/** @typedef {import("../../element/PinElement").default} PinElement */
|
||||
|
||||
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`${Utility.formatStringName(pinName)}`
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user