show "loading" message while checking for cached txs

This commit is contained in:
Mononaut committed 2023-07-12 17:44:37 +09:00
1 parent 243fd5e9dd
commit 415b70da14
2 files changed
+18 -3

No files matched your search

@@ -453,12 +453,19 @@
<ng-template [ngIf]="error">
<div class="text-center" *ngIf="waitingForTransaction; else errorTemplate">
<h3 i18n="transaction.error.transaction-not-found">Transaction not found.</h3>
<h5 i18n="transaction.error.waiting-for-it-to-appear">Waiting for it to appear in the mempool...</h5>
<div class="text-center" *ngIf="loadingCachedTx; else waitingTemplate">
<h3 i18n="transaction.error.transaction-not-found">Loading transaction</h3>
<div class="spinner-border text-light mt-2"></div>
</div>
<ng-template #waitingTemplate>
<div class="text-center" *ngIf="waitingForTransaction; else errorTemplate">
<h3 i18n="transaction.error.transaction-not-found">Transaction not found.</h3>
<h5 i18n="transaction.error.waiting-for-it-to-appear">Waiting for it to appear in the mempool...</h5>
<div class="spinner-border text-light mt-2"></div>
</div>
</ng-template>
<ng-template #errorTemplate>
<div class="text-center">
<h3>{{ error.error }}</h3>