Skip to content

Commit

Permalink
(BIDS-2402) (BIDS-2401) dashboard no reloading, chart sizre (#2495)
Browse files Browse the repository at this point in the history
  • Loading branch information
MauserBitfly authored Aug 24, 2023
1 parent c8067dc commit 117d190
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions static/js/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -1131,8 +1131,10 @@ $(document).ready(function () {

if (state.validators.length) {
var qryStr = "?validators=" + state.validators.join(",")
var newUrl = window.location.pathname + qryStr
window.history.replaceState(null, "Dashboard", newUrl)
if (window.location.search != qryStr) {
var newUrl = window.location.pathname + qryStr + window.location.hash
window.history.replaceState(null, "Dashboard", newUrl)
}
}
var t0 = Date.now()
if (state.validators && state.validators.length) {
Expand Down Expand Up @@ -1480,7 +1482,7 @@ function createProposedChart(data) {
proposedChart = Highcharts.stockChart("proposed-chart", {
chart: {
type: "column",
height: "250px",
height: "630px",
},
title: {
text: "Proposal History for all Validators",
Expand Down
2 changes: 1 addition & 1 deletion templates/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@
<i class="fas fa-chart-line fa-sm switch-chart p-2 proposal-switch-selected"></i>
<i class="fas fa-table fa-sm switch-table p-2"></i>
</div>
<div id="proposed-chart">
<div id="proposed-chart" class="h-100">
<div class="d-flex align-items-center justify-content-center p-5">
<svg style="width:60%;height:auto;" id="b8be6891-8c6c-471d-9cef-5646484caaf2" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1044.13 832.56">
<defs>
Expand Down

0 comments on commit 117d190

Please sign in to comment.