Browse Source

datadir settings fix

v0.25
pbca26 7 years ago
parent
commit
273d717506
  1. 2
      assets/mainWindow/js/loading.js
  2. 9
      react/src/actions/actions/nativeSyncInfo.js

2
assets/mainWindow/js/loading.js

@ -25,7 +25,7 @@ function initSettingsForm() {
appConfSchema[key].initDisplay) { appConfSchema[key].initDisplay) {
_htmlOut = ` _htmlOut = `
${_htmlOut} ${_htmlOut}
<tr id="${key}"> <tr>
<td class="left"> <td class="left">
${appConfSchema[key].displayName}`; ${appConfSchema[key].displayName}`;

9
react/src/actions/actions/nativeSyncInfo.js

@ -160,7 +160,7 @@ export function getSyncInfoNative(coin, skipDebug, skipRemote, suppressErrors) {
'Please make sure to run komodod manually', 'Please make sure to run komodod manually',
'Connection error', 'Connection error',
'warning', 'warning',
true false
) )
); );
} }
@ -260,7 +260,8 @@ export function getBlockTemplate(_json, coin) {
) )
); );
} else { } else {
if (json.error && json.error.code === -10) { if (json.error &&
json.error.code === -10) {
console.log('debuglog'); console.log('debuglog');
dispatch( dispatch(
getDebugLogProgress(_json, coin) getDebugLogProgress(_json, coin)
@ -311,7 +312,9 @@ export function getDebugLogProgress(_json, coin) {
json = JSON.parse(json); json = JSON.parse(json);
} }
if (json.result && json.result.blocks && json.result.headers) { if (json.result &&
json.result.blocks &&
json.result.headers) {
_json.result.longestchain = json.result.headers; _json.result.longestchain = json.result.headers;
_json.result.progress = json.result.blocks * 100 / json.result.headers; _json.result.progress = json.result.blocks * 100 / json.result.headers;
} else if (json.result && } else if (json.result &&

Loading…
Cancel
Save