mirror of
https://github.com/mempool/mempool.git
synced 2025-04-23 23:10:45 +02:00
Enable offline mode when previewing coinbase
This commit is contained in:
parent
be2c57e020
commit
17cc2ded4c
@ -220,7 +220,7 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="data-title clip text-center coinbase" i18n="latest-blocks.coinbasetag">
|
||||
<a class="title-link" [routerLink]="['/tx/preview' | relativeUrl]" [fragment]="'hex=' + job.coinbase">
|
||||
<a class="title-link" [routerLink]="['/tx/preview' | relativeUrl]" [fragment]="'offline=true&hex=' + job.coinbase">
|
||||
Coinbase tag <span> </span>
|
||||
<fa-icon [icon]="['fas', 'external-link-alt']" [fixedWidth]="true" style="vertical-align: text-top; font-size: 13px; color: var(--title-fg)"></fa-icon>
|
||||
</a>
|
||||
|
@ -45,7 +45,7 @@
|
||||
<app-amount [satoshis]="row.job.reward"></app-amount>
|
||||
</td>
|
||||
<td class="height">
|
||||
<a [routerLink]="['/tx/preview' | relativeUrl]" [fragment]="'hex=' + row.job.coinbase">
|
||||
<a [routerLink]="['/tx/preview' | relativeUrl]" [fragment]="'offline=true&hex=' + row.job.coinbase">
|
||||
{{ row.job.height }}
|
||||
</a>
|
||||
</td>
|
||||
|
@ -86,12 +86,14 @@ export class TransactionRawComponent implements OnInit, OnDestroy {
|
||||
const hex = params.get('hex');
|
||||
if (hex) {
|
||||
this.pushTxForm.get('txRaw').setValue(hex);
|
||||
this.decodeTransaction();
|
||||
}
|
||||
const offline = params.get('offline');
|
||||
if (offline) {
|
||||
this.offlineMode = offline === 'true';
|
||||
}
|
||||
if (this.pushTxForm.get('txRaw').value) {
|
||||
this.decodeTransaction();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -281,7 +283,6 @@ export class TransactionRawComponent implements OnInit, OnDestroy {
|
||||
this.filters = [];
|
||||
this.hasPrevouts = false;
|
||||
this.missingPrevouts = [];
|
||||
this.offlineMode = false;
|
||||
this.stateService.markBlock$.next({});
|
||||
this.mempoolBlocksSubscription?.unsubscribe();
|
||||
this.broadcastSubscription?.unsubscribe();
|
||||
@ -290,6 +291,7 @@ export class TransactionRawComponent implements OnInit, OnDestroy {
|
||||
resetForm() {
|
||||
this.resetState();
|
||||
this.pushTxForm.get('txRaw').setValue('');
|
||||
this.offlineMode = false;
|
||||
this.router.navigate([], {
|
||||
fragment: '',
|
||||
replaceUrl: true
|
||||
|
Loading…
x
Reference in New Issue
Block a user