From 3df37a2b94a5dc5fe2cb0bf2d8ddf89e4b7db2af Mon Sep 17 00:00:00 2001
From: cgeek <cem.moreau@gmail.com>
Date: Mon, 13 May 2019 21:12:35 +0200
Subject: [PATCH] [enh] Overview: first access directly displays current block

---
 src/views/home/Overview.vue | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/views/home/Overview.vue b/src/views/home/Overview.vue
index 7868e5c..53e8fe8 100644
--- a/src/views/home/Overview.vue
+++ b/src/views/home/Overview.vue
@@ -33,7 +33,7 @@
 
             <div class="row">
               <div class="col-md-2 col-sm-12">
-                <h5>{{ $t((current ? 'B#' + current.number : 'none')) }}</h5>
+                <h5>{{ (current ? 'B#' + current.number : 'none') }}</h5>
                 <h6 v-if="current">H#{{current.hash.substr(0, 10)}}</h6>
               </div>
               <div class="col">
@@ -155,6 +155,7 @@
     async mounted() {
 
       this.current = await this.$webmin.current()
+      this.currentBest = { bs: [this.current.number, this.current.hash].join('-'), count: 1 }
       this.updateHeads(await this.$webmin.heads())
       this.ws2pinfos = await this.$webmin.ws2pInfos()
 
-- 
GitLab