From 132923e7db1245aaa0fa4ce6abf61c95a9231582 Mon Sep 17 00:00:00 2001 From: Mononaut Date: Wed, 12 Jul 2023 17:43:48 +0900 Subject: [PATCH] Show skeleton loader instead of "Loading transaction..." --- .../transaction/transaction.component.html | 17 +++++------------ .../transaction/transaction.component.ts | 1 - 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/frontend/src/app/components/transaction/transaction.component.html b/frontend/src/app/components/transaction/transaction.component.html index 8c88d6fc1..203a5df5c 100644 --- a/frontend/src/app/components/transaction/transaction.component.html +++ b/frontend/src/app/components/transaction/transaction.component.html @@ -306,7 +306,7 @@ - +
@@ -451,21 +451,14 @@ - + -
-

Loading transaction

+
+

Transaction not found.

+
Waiting for it to appear in the mempool...
- -
-

Transaction not found.

-
Waiting for it to appear in the mempool...
-
-
-
-

{{ error.error }}

diff --git a/frontend/src/app/components/transaction/transaction.component.ts b/frontend/src/app/components/transaction/transaction.component.ts index 08f331e60..797282c7b 100644 --- a/frontend/src/app/components/transaction/transaction.component.ts +++ b/frontend/src/app/components/transaction/transaction.component.ts @@ -226,7 +226,6 @@ export class TransactionComponent implements OnInit, AfterViewInit, OnDestroy { this.tx.feePerVsize = tx.fee / (tx.weight / 4); this.isLoadingTx = false; this.error = undefined; - this.loadingCachedTx = false; this.waitingForTransaction = false; this.graphExpanded = false; this.transactionTime = tx.firstSeen || 0;