Browse Source

zcparams modal fix

v0.25
pbca26 7 years ago
parent
commit
67cb65e8db
  1. 9
      react/src/components/dashboard/zcparamsFetchModal/zcparamsFetchModal.js
  2. 6
      react/src/components/dashboard/zcparamsFetchModal/zcparamsFetchModal.scss
  3. 2
      react/src/translate/en.js

9
react/src/components/dashboard/zcparamsFetchModal/zcparamsFetchModal.js

@ -103,15 +103,16 @@ class ZcparamsFetchModal extends React.Component {
if (data.msg.file === 'proving') {
_updateLog = [];
_updateLog.push(translate('ZCPARAMS_FETCH.BOTH_KEYS_VERIFIED'));
_updateLog.push(translate('ZCPARAMS_FETCH.CLOSE_THE_MODAL'));
this.setState(Object.assign({}, this.state, {
updateLog: _updateLog,
done: true,
}));
window.require('electron').remote.getCurrentWindow().zcashParamsExistPromise()
mainWindow.zcashParamsExistPromise()
.then((res) => {
const _errors = zcashParamsCheckErrors(res);
window.require('electron').remote.getCurrentWindow().zcashParamsExist = res;
const _errors = mainWindow.zcashParamsCheckErrors(res);
mainWindow.zcashParamsExist = res;
});
} else {
this.setState(Object.assign({}, this.state, {
@ -152,7 +153,7 @@ class ZcparamsFetchModal extends React.Component {
<div
className="padding-top-20"
style={{ minHeight: '140px' }}>
<h5>{ translate('SETTINGS.PROGRESS') }:</h5>
<h5>{ translate('SETTINGS.PROGRESS') }</h5>
<div className="padding-bottom-15">{ items }</div>
<div className={ updateProgressBar.zcparams.proving > -1 && !this.state.done ? 'progress progress-sm' : 'hide' }>
<div

6
react/src/components/dashboard/zcparamsFetchModal/zcparamsFetchModal.scss

@ -16,4 +16,10 @@
}
}
}
}
.page-login {
.zcparams-fetch-modal {
color: #757575;
}
}

2
react/src/translate/en.js

@ -730,7 +730,7 @@ export const LANG_EN = {
'ZCPARAMS_FETCH': {
'DOWNLOADING_ZCASH_KEYS': 'Downloading Zcash keys',
'BOTH_KEYS_VERIFIED': 'Both Zcash param keys are downloaded and verified!',
'PLEASE_RESTART': 'Please restart the app.',
'CLOSE_THE_MODAL': 'Close the modal and try to add a coin again.',
'ZCPARAMS_VERIFICATION_ERROR_P1': 'Zcash param',
'ZCPARAMS_VERIFICATION_ERROR_P2': 'verification error!',
'ZCPARAMS_FETCH': 'ZCash Params Fetch',

Loading…
Cancel
Save