minor audit details fixes

This commit is contained in:
Mononaut 2023-06-14 11:28:39 -04:00
parent ae5a0312be
commit 6b93e61b56
No known key found for this signature in database
GPG key ID: A3F058E41374C04E
3 changed files with 4 additions and 4 deletions

View file

@ -7,7 +7,7 @@ import cpfpRepository from '../repositories/CpfpRepository';
import { RowDataPacket } from 'mysql2';
class DatabaseMigration {
private static currentVersion = 61;
private static currentVersion = 62;
private queryTimeout = 3600_000;
private statisticsAddedIndexed = false;
private uniqueLogs: string[] = [];

View file

@ -392,7 +392,7 @@
</ng-template>
<ng-template #expectedDetails>
<table *ngIf="block && blockAudit" class="table table-borderless table-striped audit-details-table">
<table *ngIf="block && blockAudit && blockAudit.expectedFees != null" class="table table-borderless table-striped audit-details-table">
<tbody>
<tr>
<td i18n="block.total-fees|Total fees in a block">Total fees</td>
@ -413,7 +413,7 @@
</ng-template>
<ng-template #actualDetails>
<table *ngIf="block && blockAudit" class="table table-borderless table-striped audit-details-table">
<table *ngIf="block && blockAudit && blockAudit.expectedFees != null" class="table table-borderless table-striped audit-details-table">
<tbody>
<tr>
<td i18n="block.total-fees|Total fees in a block">Total fees</td>

View file

@ -69,7 +69,7 @@
</td>
<td *ngIf="auditAvailable" class="fee-delta" [ngClass]="{'widget': widget, 'legacy': !indexingAvailable}">
<span *ngIf="block.extras.feeDelta" class="difference" [class.positive]="block.extras.feeDelta >= 0" [class.negative]="block.extras.feeDelta < 0">
({{ block.extras.feeDelta > 0 ? '+' : '' }}{{ (block.extras.feeDelta * 100) | amountShortener: 2 }}%)
{{ block.extras.feeDelta > 0 ? '+' : '' }}{{ (block.extras.feeDelta * 100) | amountShortener: 2 }}%
</span>
</td>
<td class="txs text-right" [ngClass]="{'widget': widget, 'legacy': !indexingAvailable}">