From 9e71f1a6838c18c64294ae9696d0c700e8984b26 Mon Sep 17 00:00:00 2001 From: softsimon Date: Tue, 22 Sep 2020 12:50:12 +0700 Subject: [PATCH] Improved dashboard loading indicators. --- .../app/dashboard/dashboard.component.html | 30 +++++++++++-------- .../app/dashboard/dashboard.component.scss | 4 +++ 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/frontend/src/app/dashboard/dashboard.component.html b/frontend/src/app/dashboard/dashboard.component.html index c11627005..4dbafedc2 100644 --- a/frontend/src/app/dashboard/dashboard.component.html +++ b/frontend/src/app/dashboard/dashboard.component.html @@ -2,12 +2,12 @@
-
+
Mempool size
-

{{ mempoolBlocksData.size | bytes }} ({{ mempoolBlocksData.blocks }} blocks)

+

{{ mempoolBlocksData.size | bytes }} ({{ mempoolBlocksData.blocks }} blocks)

@@ -15,7 +15,7 @@
Unconfirmed transactions
-

{{ mempoolInfoData.memPoolInfo.size | number }}

+

{{ mempoolInfoData.value.memPoolInfo.size | number }}

@@ -23,13 +23,15 @@
Tx weight per second
- -  Backend is synchronizing - - -
-
{{ mempoolInfoData.vBytesPerSecond | ceil | number }} vB/s
-
+ + +  Backend is synchronizing + + +
+
{{ mempoolInfoData.value.vBytesPerSecond | ceil | number }} vB/s
+
+
@@ -38,7 +40,7 @@
Difficulty epoch
-
+
+{{ epochData.change | number: '1.0-2' }}%
@@ -48,4 +50,8 @@
-
\ No newline at end of file +
+ + +
+
\ No newline at end of file diff --git a/frontend/src/app/dashboard/dashboard.component.scss b/frontend/src/app/dashboard/dashboard.component.scss index efd762c7a..a6d7039ac 100644 --- a/frontend/src/app/dashboard/dashboard.component.scss +++ b/frontend/src/app/dashboard/dashboard.component.scss @@ -34,3 +34,7 @@ .bg-warning { background-color: #b58800 !important; } + +.skeleton-loader { + width: 200px; +}