mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-01 13:37:47 +00:00
Update hat-script-graph.ts
This commit is contained in:
parent
a355bedd77
commit
9b782cabe2
@ -96,7 +96,7 @@ export class HatScriptGraph extends LitElement {
|
|||||||
@focus=${this.selectNode(config, path)}
|
@focus=${this.selectNode(config, path)}
|
||||||
?active=${this.selected === path}
|
?active=${this.selected === path}
|
||||||
.iconPath=${mdiAsterisk}
|
.iconPath=${mdiAsterisk}
|
||||||
.disabled=${config.enabled === false}
|
.notEnabled=${config.enabled === false}
|
||||||
tabindex=${track ? "0" : "-1"}
|
tabindex=${track ? "0" : "-1"}
|
||||||
></hat-graph-node>
|
></hat-graph-node>
|
||||||
`;
|
`;
|
||||||
@ -172,14 +172,14 @@ export class HatScriptGraph extends LitElement {
|
|||||||
@focus=${this.selectNode(config, path)}
|
@focus=${this.selectNode(config, path)}
|
||||||
?track=${trace !== undefined}
|
?track=${trace !== undefined}
|
||||||
?active=${this.selected === path}
|
?active=${this.selected === path}
|
||||||
.disabled=${disabled || config.enabled === false}
|
.notEnabled=${disabled || config.enabled === false}
|
||||||
>
|
>
|
||||||
<hat-graph-node
|
<hat-graph-node
|
||||||
.graphStart=${graphStart}
|
.graphStart=${graphStart}
|
||||||
.iconPath=${mdiArrowDecision}
|
.iconPath=${mdiArrowDecision}
|
||||||
?track=${trace !== undefined}
|
?track=${trace !== undefined}
|
||||||
?active=${this.selected === path}
|
?active=${this.selected === path}
|
||||||
.disabled=${disabled || config.enabled === false}
|
.notEnabled=${disabled || config.enabled === false}
|
||||||
slot="head"
|
slot="head"
|
||||||
nofocus
|
nofocus
|
||||||
></hat-graph-node>
|
></hat-graph-node>
|
||||||
@ -202,7 +202,7 @@ export class HatScriptGraph extends LitElement {
|
|||||||
@focus=${this.selectNode(config, branch_path)}
|
@focus=${this.selectNode(config, branch_path)}
|
||||||
?track=${track_this}
|
?track=${track_this}
|
||||||
?active=${this.selected === branch_path}
|
?active=${this.selected === branch_path}
|
||||||
.disabled=${disabled || config.enabled === false}
|
.notEnabled=${disabled || config.enabled === false}
|
||||||
></hat-graph-node>
|
></hat-graph-node>
|
||||||
${branch.sequence !== null
|
${branch.sequence !== null
|
||||||
? ensureArray(branch.sequence).map((action, j) =>
|
? ensureArray(branch.sequence).map((action, j) =>
|
||||||
@ -261,14 +261,14 @@ export class HatScriptGraph extends LitElement {
|
|||||||
@focus=${this.selectNode(config, path)}
|
@focus=${this.selectNode(config, path)}
|
||||||
?track=${trace !== undefined}
|
?track=${trace !== undefined}
|
||||||
?active=${this.selected === path}
|
?active=${this.selected === path}
|
||||||
.disabled=${disabled || config.enabled === false}
|
.notEnabled=${disabled || config.enabled === false}
|
||||||
>
|
>
|
||||||
<hat-graph-node
|
<hat-graph-node
|
||||||
.graphStart=${graphStart}
|
.graphStart=${graphStart}
|
||||||
.iconPath=${mdiCallSplit}
|
.iconPath=${mdiCallSplit}
|
||||||
?track=${trace !== undefined}
|
?track=${trace !== undefined}
|
||||||
?active=${this.selected === path}
|
?active=${this.selected === path}
|
||||||
.disabled=${disabled || config.enabled === false}
|
.notEnabled=${disabled || config.enabled === false}
|
||||||
slot="head"
|
slot="head"
|
||||||
nofocus
|
nofocus
|
||||||
></hat-graph-node>
|
></hat-graph-node>
|
||||||
@ -278,7 +278,7 @@ export class HatScriptGraph extends LitElement {
|
|||||||
.iconPath=${mdiCallMissed}
|
.iconPath=${mdiCallMissed}
|
||||||
?track=${trackElse}
|
?track=${trackElse}
|
||||||
?active=${this.selected === path}
|
?active=${this.selected === path}
|
||||||
.disabled=${disabled || config.enabled === false}
|
.notEnabled=${disabled || config.enabled === false}
|
||||||
nofocus
|
nofocus
|
||||||
></hat-graph-node
|
></hat-graph-node
|
||||||
>${ensureArray(config.else).map((action, j) =>
|
>${ensureArray(config.else).map((action, j) =>
|
||||||
@ -296,7 +296,7 @@ export class HatScriptGraph extends LitElement {
|
|||||||
.iconPath=${mdiCallReceived}
|
.iconPath=${mdiCallReceived}
|
||||||
?track=${trackThen}
|
?track=${trackThen}
|
||||||
?active=${this.selected === path}
|
?active=${this.selected === path}
|
||||||
.disabled=${disabled || config.enabled === false}
|
.notEnabled=${disabled || config.enabled === false}
|
||||||
nofocus
|
nofocus
|
||||||
></hat-graph-node>
|
></hat-graph-node>
|
||||||
${ensureArray(config.then).map((action, j) =>
|
${ensureArray(config.then).map((action, j) =>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user