From 0c219e4e139d3f5c8f29124754217cdbb1327f5c Mon Sep 17 00:00:00 2001 From: Mayank Date: Sat, 16 May 2020 17:38:55 +0530 Subject: [PATCH] blockchain timeout --- src/components/Blockchain.vue | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/components/Blockchain.vue b/src/components/Blockchain.vue index 7ce4f58..d4c738c 100644 --- a/src/components/Blockchain.vue +++ b/src/components/Blockchain.vue @@ -139,8 +139,11 @@ export default { return; } this.pollInProgress = true; - await this.$store.dispatch("bitcoin/getBlocks"); - this.pollInProgress = false; + //TODO: remove this timeout added so bitcoin can get fetch status first + setTimeout(async () => { + await this.$store.dispatch("bitcoin/getBlocks"); + this.pollInProgress = false; + }, 1000); }, poller(syncPercent) { window.clearInterval(this.polling); @@ -250,6 +253,14 @@ export default { height: 4rem; width: 4rem; + svg { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + z-index: 1; + } + .blockchain-block-icon-chainlink { position: absolute; height: 4rem;