Skip to content
Snippets Groups Projects
Commit 3df37a2b authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[enh] Overview: first access directly displays current block

parent 221be494
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<div class="row"> <div class="row">
<div class="col-md-2 col-sm-12"> <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> <h6 v-if="current">H#{{current.hash.substr(0, 10)}}</h6>
</div> </div>
<div class="col"> <div class="col">
...@@ -155,6 +155,7 @@ ...@@ -155,6 +155,7 @@
async mounted() { async mounted() {
this.current = await this.$webmin.current() 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.updateHeads(await this.$webmin.heads())
this.ws2pinfos = await this.$webmin.ws2pInfos() this.ws2pinfos = await this.$webmin.ws2pInfos()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment