Browse Source

added no blocks condition to dashboard

master
pbca26 8 years ago
parent
commit
7c5227b6e2
  1. 6
      assets/scripts/kmd_wallet_dashboard.js
  2. 2
      assets/scripts/sidebar.js

6
assets/scripts/kmd_wallet_dashboard.js

@ -240,14 +240,20 @@ function KMD_ProgressBar() {
if (extcoin !== 'ZEC') {
if ( getinfotmp == 'activating') {
$('span[data-extcoin="' + extcoin + '"][id="extcoin-sync-percent"]').text(_lang[defaultLang].INDEX.ACTIVATING + '...');
} else {
if (getinfotmp.blocks === 0) {
$('span[data-extcoin="' + extcoin + '"][id="extcoin-sync-percent"]').text('No blocks');
$('#extcoin-progressbars .progress-bar').css({ 'width': '100%' });
} else {
var sync_percent = parseFloat(parseInt(getinfotmp.blocks, 10) * 100) / parseInt(getinfotmp.longestchain, 10);
//console.log(sync_percent);
console.log('getinfotmp', getinfotmp);
$('div[data-extcoin="' + extcoin + '"][id="extcoin-sync"]').width(parseFloat(sync_percent).toFixed(2) + '%');
$('span[data-extcoin="' + extcoin + '"][id="extcoin-sync-percent"]').text(parseFloat(sync_percent).toFixed(2) + '%');
$('span[data-extcoin="' + extcoin + '"][id="extcoin-synced-blocks"]').text(getinfotmp.blocks);
$('span[data-extcoin="' + extcoin + '"][id="extcoin-longestchain"]').text(getinfotmp.longestchain);
$('span[data-extcoin="' + extcoin + '"][id="extcoin-connections"]').text(getinfotmp.connections);
}
$('#extcoin-wallet-activating-alert').hide();
}
}

2
assets/scripts/sidebar.js

@ -474,7 +474,7 @@ function assetchain_pax_menu_actions(coin) {
renderAssetGFX('supernet', 'jumblr', coin);
break;
case 'MVP':
renderAssetGFX('mpv', 'mpv', coin);
renderAssetGFX('mvp', 'mvp', coin);
break;
case 'KV':
renderAssetGFX('supernet', 'jumblr', coin);

Loading…
Cancel
Save