Implemented status bar with some status information: sync process, connected nodes and blockchain height.

This commit is contained in:
Revertron
2021-02-27 18:57:15 +01:00
parent 0d3b8c3db0
commit e53245315f
12 changed files with 192 additions and 95 deletions
+21 -4
View File
@@ -249,12 +249,19 @@ function showWarning(text) {
setTimeout(button.onclick, 5000);
}
function showMiningIndicator(visible) {
indicator = document.getElementById("mining_indicator");
function showMiningIndicator(visible, blue) {
var indicator = document.getElementById("busy_indicator");
var parent = document.getElementById("indicator_parent");
var add = "";
if (blue) {
add = " busy_blue";
}
if (visible) {
indicator.style.visibility = 'visible';
indicator.className = 'busy_indicator' + add;
parent.style.display = 'flex';
} else {
indicator.style.visibility = 'hidden';
indicator.className = 'busy_indicator is-hidden';
parent.style.display = 'none';
}
}
@@ -264,6 +271,16 @@ function miningIndicatorClick(element) {
});
}
function setLeftStatusBarText(text) {
var bar = document.getElementById("status_bar_left");
bar.innerHTML = text;
}
function setRightStatusBarText(text) {
var bar = document.getElementById("status_bar_right");
bar.innerHTML = text;
}
function keystoreChanged(path, pub_key) {
if (path == '') {
path = "In memory";