Fix tracing graph (#9782)

This commit is contained in:
Bram Kragten
2021-08-12 15:59:57 +02:00
committed by GitHub
parent d8929074b5
commit 44548fdc33
2 changed files with 14 additions and 11 deletions

View File

@@ -149,6 +149,7 @@ export class HatScriptGraph extends LitElement {
.graphStart=${graphStart}
.iconPath=${mdiCallSplit}
?track=${trace !== undefined}
?active=${this.selected === path}
slot="head"
nofocus
></hat-graph-node>
@@ -228,6 +229,7 @@ export class HatScriptGraph extends LitElement {
.graphStart=${graphStart}
slot="head"
?track=${track}
?active=${this.selected === path}
.iconPath=${mdiAbTesting}
nofocus
></hat-graph-node>
@@ -241,6 +243,7 @@ export class HatScriptGraph extends LitElement {
.iconPath=${mdiClose}
nofocus
?track=${trackFailed}
?active=${this.selected === path}
></hat-graph-node>
</hat-graph-branch>
`;
@@ -315,12 +318,14 @@ export class HatScriptGraph extends LitElement {
.graphStart=${graphStart}
.iconPath=${mdiRefresh}
?track=${path in this.trace.trace}
?active=${this.selected === path}
slot="head"
nofocus
></hat-graph-node>
<hat-graph-node
.iconPath=${mdiArrowUp}
?track=${repeats > 1}
?active=${this.selected === path}
nofocus
.badge=${repeats > 1 ? repeats : undefined}
></hat-graph-node>