From d8737ef6e1b05a5c86fe65adb390a60e5b8dcc9c Mon Sep 17 00:00:00 2001 From: Mononaut Date: Thu, 26 Jan 2023 19:14:40 -0600 Subject: [PATCH] Only show audit-related tooltip info when audit enabled --- .../block-overview-graph/block-overview-graph.component.html | 1 + .../block-overview-tooltip.component.html | 2 +- .../block-overview-tooltip/block-overview-tooltip.component.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/components/block-overview-graph/block-overview-graph.component.html b/frontend/src/app/components/block-overview-graph/block-overview-graph.component.html index 77ee62cae..54cd995aa 100644 --- a/frontend/src/app/components/block-overview-graph/block-overview-graph.component.html +++ b/frontend/src/app/components/block-overview-graph/block-overview-graph.component.html @@ -9,5 +9,6 @@ [tx]="selectedTx || hoverTx" [cursorPosition]="tooltipPosition" [clickable]="!!selectedTx" + [auditEnabled]="auditHighlighting" > diff --git a/frontend/src/app/components/block-overview-tooltip/block-overview-tooltip.component.html b/frontend/src/app/components/block-overview-tooltip/block-overview-tooltip.component.html index 1a58bfbd9..7a1145a0e 100644 --- a/frontend/src/app/components/block-overview-tooltip/block-overview-tooltip.component.html +++ b/frontend/src/app/components/block-overview-tooltip/block-overview-tooltip.component.html @@ -32,7 +32,7 @@ Virtual size - + Audit status Match diff --git a/frontend/src/app/components/block-overview-tooltip/block-overview-tooltip.component.ts b/frontend/src/app/components/block-overview-tooltip/block-overview-tooltip.component.ts index e30f40b9a..6702c4d62 100644 --- a/frontend/src/app/components/block-overview-tooltip/block-overview-tooltip.component.ts +++ b/frontend/src/app/components/block-overview-tooltip/block-overview-tooltip.component.ts @@ -11,6 +11,7 @@ export class BlockOverviewTooltipComponent implements OnChanges { @Input() tx: TransactionStripped | void; @Input() cursorPosition: Position; @Input() clickable: boolean; + @Input() auditEnabled: boolean = false; txid = ''; fee = 0;