From 117d190c288c330a9ee1e5877d3ef4889309c576 Mon Sep 17 00:00:00 2001 From: MauserBitfly <125363940+MauserBitfly@users.noreply.github.com> Date: Thu, 24 Aug 2023 12:21:03 +0200 Subject: [PATCH] (BIDS-2402) (BIDS-2401) dashboard no reloading, chart sizre (#2495) --- static/js/dashboard.js | 8 +++++--- templates/dashboard.html | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/static/js/dashboard.js b/static/js/dashboard.js index dc6917e640..433c2f5e62 100644 --- a/static/js/dashboard.js +++ b/static/js/dashboard.js @@ -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) { @@ -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", diff --git a/templates/dashboard.html b/templates/dashboard.html index c067f1ad4a..6804ae109a 100644 --- a/templates/dashboard.html +++ b/templates/dashboard.html @@ -494,7 +494,7 @@ -
+