More acceleration labelling fixes
This commit is contained in:
parent
9f79258dec
commit
226c6d8432
@ -561,13 +561,13 @@
|
|||||||
|
|
||||||
<ng-template #gogglesRow>
|
<ng-template #gogglesRow>
|
||||||
@if (!isLoadingTx) {
|
@if (!isLoadingTx) {
|
||||||
@if (((auditStatus && auditStatus.accelerated) || accelerationInfo || (tx && tx.acceleration)) || filters.length) {
|
@if (isAcceleration || filters.length) {
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td-width">
|
<td class="td-width">
|
||||||
<span class="goggles-icon"><app-svg-images name="goggles" width="100%" height="100%"></app-svg-images></span>
|
<span class="goggles-icon"><app-svg-images name="goggles" width="100%" height="100%"></app-svg-images></span>
|
||||||
</td>
|
</td>
|
||||||
<td class="wrap-cell">
|
<td class="wrap-cell">
|
||||||
@if ((auditStatus && auditStatus.accelerated) || accelerationInfo || (tx && tx.acceleration)) {
|
@if (isAcceleration) {
|
||||||
<span class="badge badge-accelerated mr-1" i18n="transaction.audit.accelerated">Accelerated</span>
|
<span class="badge badge-accelerated mr-1" i18n="transaction.audit.accelerated">Accelerated</span>
|
||||||
}
|
}
|
||||||
<ng-container *ngFor="let filter of filters;">
|
<ng-container *ngFor="let filter of filters;">
|
||||||
|
@ -9,7 +9,8 @@ import {
|
|||||||
delay,
|
delay,
|
||||||
mergeMap,
|
mergeMap,
|
||||||
tap,
|
tap,
|
||||||
map
|
map,
|
||||||
|
retry
|
||||||
} from 'rxjs/operators';
|
} from 'rxjs/operators';
|
||||||
import { Transaction } from '../../interfaces/electrs.interface';
|
import { Transaction } from '../../interfaces/electrs.interface';
|
||||||
import { of, merge, Subscription, Observable, Subject, from, throwError, combineLatest } from 'rxjs';
|
import { of, merge, Subscription, Observable, Subject, from, throwError, combineLatest } from 'rxjs';
|
||||||
@ -325,6 +326,7 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||||||
map(block => {
|
map(block => {
|
||||||
return block.extras.pool;
|
return block.extras.pool;
|
||||||
}),
|
}),
|
||||||
|
retry({ count: 3, delay: 2000 }),
|
||||||
catchError(() => {
|
catchError(() => {
|
||||||
return of(null);
|
return of(null);
|
||||||
})
|
})
|
||||||
@ -345,13 +347,14 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||||||
accelerated: isAccelerated,
|
accelerated: isAccelerated,
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
|
retry({ count: 3, delay: 2000 }),
|
||||||
catchError(() => {
|
catchError(() => {
|
||||||
return of(null);
|
return of(null);
|
||||||
})
|
})
|
||||||
) : of(isCoinbase ? { coinbase: true } : null)
|
) : of(isCoinbase ? { coinbase: true } : null)
|
||||||
]);
|
]);
|
||||||
}),
|
}),
|
||||||
catchError(() => {
|
catchError((e) => {
|
||||||
return of(null);
|
return of(null);
|
||||||
})
|
})
|
||||||
).subscribe(([pool, auditStatus]) => {
|
).subscribe(([pool, auditStatus]) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user