Wait for an push transactions that hasn't yet appeared in the mempool

This commit is contained in:
softsimon
2020-04-13 01:26:53 +07:00
parent 36d88fec9c
commit d432b3ce4a
5 changed files with 90 additions and 33 deletions

View File

@@ -72,8 +72,6 @@
</div>
</div>
<br>
</ng-template>
<ng-template #unconfirmedTemplate>
@@ -132,6 +130,8 @@
</div>
</ng-template>
<br>
<h2>Inputs & Outputs</h2>
<app-transactions-list [transactions]="[tx]" [transactionPage]="true"></app-transactions-list>
@@ -227,11 +227,18 @@
</ng-template>
<ng-template [ngIf]="error">
<div class="text-center">
Error loading transaction data.
<br>
<i>{{ error.error }}</i>
<div class="text-center" *ngIf="waitingForTransaction">
<h3>Transaction not found.</h3>
<h5>Waiting for it to appear in the mempool...</h5>
<div class="spinner-border text-light mt-2"></div>
</div>
<ng-template #errorTemplate>
<div class="text-center">
<h3>{{ error.error }}</h3>
</div>
</ng-template>
</ng-template>
</div>