Implemented status bar with some status information: sync process, connected nodes and blockchain height.
This commit is contained in:
+21
-4
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user