Use checkmark only in chosen choose (#8824)

This commit is contained in:
Bram Kragten 2021-04-06 18:03:04 +02:00 committed by GitHub
parent 4511c8f30c
commit 4843ee80a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,7 @@ import {
mdiArrowUp, mdiArrowUp,
mdiAsterisk, mdiAsterisk,
mdiCallSplit, mdiCallSplit,
mdiCheckboxBlankOutline,
mdiCheckBoxOutline, mdiCheckBoxOutline,
mdiChevronDown, mdiChevronDown,
mdiChevronRight, mdiChevronRight,
@ -107,7 +108,7 @@ class HatScriptGraph extends LitElement {
})} })}
.track_start=${[track_path]} .track_start=${[track_path]}
.track_end=${[track_path]} .track_end=${[track_path]}
tabindex=${trace === undefined ? "-1" : "0"} tabindex=${trace ? "-1" : "0"}
short short
> >
<hat-graph-node <hat-graph-node
@ -175,7 +176,9 @@ class HatScriptGraph extends LitElement {
return html` return html`
<hat-graph> <hat-graph>
<hat-graph-node <hat-graph-node
.iconPath=${mdiCheckBoxOutline} .iconPath=${!trace || track_this
? mdiCheckBoxOutline
: mdiCheckboxBlankOutline}
@focus=${this.selectNode(config, branch_path)} @focus=${this.selectNode(config, branch_path)}
class=${classMap({ class=${classMap({
active: this.selected === branch_path, active: this.selected === branch_path,