Add spacer for default of choose (#8827)

This commit is contained in:
Bram Kragten
2021-04-06 18:32:30 +02:00
committed by GitHub
parent 8874aaabe9
commit 109910d18f
2 changed files with 27 additions and 3 deletions

View File

@@ -192,6 +192,14 @@ class HatScriptGraph extends LitElement {
`;
})}
<hat-graph>
<hat-graph-node
nofocus
spacer
class=${classMap({
track:
trace !== undefined && trace[0].result?.choice === "default",
})}
></hat-graph-node>
${ensureArray(config.default)?.map((action, i) =>
this.render_node(action, `${path}/default/${i}`)
)}