+ indicators for future use

! check for error in syncing
- consoloe.log line
This commit is contained in:
Taegus
2018-12-31 09:51:43 +01:00
parent b70e0405ad
commit ab0a7356d2
4 changed files with 60 additions and 23 deletions

View File

@@ -0,0 +1,35 @@
.led-red {
margin: 20px auto;
width: 12px;
height: 12px;
background-color: #940;
border-radius: 50%;
box-shadow: #000 0 -1px 7px 1px, inset #600 0 -1px 9px, #F00 0 2px 12px;
}
.led-yellow {
margin: 20px auto;
width: 12px;
height: 12px;
background-color: #A90;
border-radius: 50%;
box-shadow: #000 0 -1px 7px 1px, inset #660 0 -1px 9px, #DD0 0 2px 12px;
}
.led-green {
margin: 20px auto;
width: 12px;
height: 12px;
background-color: #690;
border-radius: 50%;
box-shadow: #000 0 -1px 7px 1px, inset #460 0 -1px 9px, #7D0 0 2px 12px;
}
.led-blue {
margin: 20px auto;
width: 12px;
height: 12px;
background-color: #4AB;
border-radius: 50%;
box-shadow: #000 0 -1px 7px 1px, inset #006 0 -1px 9px, #06F 0 2px 14px;
}

View File

@@ -10,6 +10,7 @@
<link rel="stylesheet" href="./assets/styles/iziToast.min.css">
<link rel="stylesheet" href="./assets/styles/transactions.css">
<link rel="stylesheet" href="./assets/styles/please-wait.css">
<link rel="stylesheet" href="./assets/styles/indicators.css">
<link rel="stylesheet" href="./assets/styles/all.min.css">
<link rel="stylesheet" href="./assets/styles/spinner.css">
<link rel="stylesheet" href="./assets/styles/buttons.css">

View File

@@ -55,7 +55,6 @@ class MainGUI {
$("#btnGeneralConfirmYes").click(function() {
$('#dlgGeneralConfirm').iziModal('close');
console.log(true);
callback(true);
});

View File

@@ -52,26 +52,28 @@ function StartSyncProcess() {
nodeSyncInterval = setInterval(function()
{
web3Local.eth.getBlock("latest", function(error, localBlock) {
if (localBlock.number > 0) {
if (!EthoTransactions.getIsSyncing()) {
SyncProgress.animate(1);
SyncProgress.setText(vsprintf('%d/%d (100%%)', [localBlock.number, localBlock.number]));
}
if (!error) {
if (localBlock.number > 0) {
if (!EthoTransactions.getIsSyncing()) {
SyncProgress.animate(1);
SyncProgress.setText(vsprintf('%d/%d (100%%)', [localBlock.number, localBlock.number]));
}
if (alreadyCatchedUp == false)
{
// clear the repeat interval and render wallets
$(document).trigger("onNewAccountTransaction");
alreadyCatchedUp = true;
isFullySynced = true;
if (alreadyCatchedUp == false)
{
// clear the repeat interval and render wallets
$(document).trigger("onNewAccountTransaction");
alreadyCatchedUp = true;
isFullySynced = true;
// enable the keep in sync feature
EthoTransactions.enableKeepInSync();
// sync all the transactions to the current block
EthoTransactions.syncTransactionsForAllAddresses(localBlock.number);
// enable the keep in sync feature
EthoTransactions.enableKeepInSync();
// sync all the transactions to the current block
EthoTransactions.syncTransactionsForAllAddresses(localBlock.number);
// signal that the sync is complete
$(document).trigger("onSyncComplete");
// signal that the sync is complete
$(document).trigger("onSyncComplete");
}
}
}
});