mirror of
https://github.com/mempool/mempool.git
synced 2025-02-24 14:50:52 +01:00
Only show audit-related tooltip info when audit enabled
This commit is contained in:
parent
3c3814910a
commit
d8737ef6e1
3 changed files with 3 additions and 1 deletions
|
@ -9,5 +9,6 @@
|
|||
[tx]="selectedTx || hoverTx"
|
||||
[cursorPosition]="tooltipPosition"
|
||||
[clickable]="!!selectedTx"
|
||||
[auditEnabled]="auditHighlighting"
|
||||
></app-block-overview-tooltip>
|
||||
</div>
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
<td class="td-width" i18n="transaction.vsize|Transaction Virtual Size">Virtual size</td>
|
||||
<td [innerHTML]="'‎' + (vsize | vbytes: 2)"></td>
|
||||
</tr>
|
||||
<tr *ngIf="tx && tx.status && tx.status.length">
|
||||
<tr *ngIf="auditEnabled && tx && tx.status && tx.status.length">
|
||||
<td class="td-width" i18n="transaction.audit-status">Audit status</td>
|
||||
<ng-container [ngSwitch]="tx?.status">
|
||||
<td *ngSwitchCase="'found'" i18n="transaction.audit.match">Match</td>
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue