|
@ -28,7 +28,12 @@ class ExportKeysPanel extends React.Component { |
|
|
props.Dashboard.activeSection !== 'settings') { |
|
|
props.Dashboard.activeSection !== 'settings') { |
|
|
this.setState(Object.assign({}, this.state, { |
|
|
this.setState(Object.assign({}, this.state, { |
|
|
keys: null, |
|
|
keys: null, |
|
|
|
|
|
wifkeysPassphrase: '', |
|
|
})); |
|
|
})); |
|
|
|
|
|
|
|
|
|
|
|
// reset input vals
|
|
|
|
|
|
this.refs.wifkeysPassphrase.value = ''; |
|
|
|
|
|
this.refs.wifkeysPassphraseTextarea.value = ''; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -46,8 +51,12 @@ class ExportKeysPanel extends React.Component { |
|
|
} else { |
|
|
} else { |
|
|
this.setState(Object.assign({}, this.state, { |
|
|
this.setState(Object.assign({}, this.state, { |
|
|
keys: keys.result, |
|
|
keys: keys.result, |
|
|
|
|
|
wifkeysPassphrase: '', |
|
|
})); |
|
|
})); |
|
|
console.warn(keys); |
|
|
|
|
|
|
|
|
// reset input vals
|
|
|
|
|
|
this.refs.wifkeysPassphrase.value = ''; |
|
|
|
|
|
this.refs.wifkeysPassphraseTextarea.value = ''; |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
@ -162,22 +171,24 @@ class ExportKeysPanel extends React.Component { |
|
|
</div> |
|
|
</div> |
|
|
<div className="row"> |
|
|
<div className="row"> |
|
|
<div className="col-sm-12"> |
|
|
<div className="col-sm-12"> |
|
|
<form |
|
|
<div |
|
|
className="wifkeys-form" |
|
|
className="wifkeys-form" |
|
|
method="post" |
|
|
|
|
|
action="javascript:" |
|
|
|
|
|
autoComplete="off"> |
|
|
autoComplete="off"> |
|
|
<div className="form-group form-material floating"> |
|
|
<div className="form-group form-material floating"> |
|
|
<input |
|
|
<input |
|
|
type="password" |
|
|
type="password" |
|
|
className={ !this.state.seedInputVisibility ? 'form-control' : 'hide' } |
|
|
className={ !this.state.seedInputVisibility ? 'form-control' : 'hide' } |
|
|
|
|
|
autoComplete="off" |
|
|
name="wifkeysPassphrase" |
|
|
name="wifkeysPassphrase" |
|
|
|
|
|
ref="wifkeysPassphrase" |
|
|
id="wifkeysPassphrase" |
|
|
id="wifkeysPassphrase" |
|
|
onChange={ this.updateInput } |
|
|
onChange={ this.updateInput } |
|
|
value={ this.state.wifkeysPassphrase } /> |
|
|
value={ this.state.wifkeysPassphrase } /> |
|
|
<textarea |
|
|
<textarea |
|
|
className={ this.state.seedInputVisibility ? 'form-control' : 'hide' } |
|
|
className={ this.state.seedInputVisibility ? 'form-control' : 'hide' } |
|
|
|
|
|
autoComplete="off" |
|
|
id="wifkeysPassphraseTextarea" |
|
|
id="wifkeysPassphraseTextarea" |
|
|
|
|
|
ref="wifkeysPassphraseTextarea" |
|
|
name="wifkeysPassphrase" |
|
|
name="wifkeysPassphrase" |
|
|
onChange={ this.updateInput } |
|
|
onChange={ this.updateInput } |
|
|
value={ this.state.wifkeysPassphrase }></textarea> |
|
|
value={ this.state.wifkeysPassphrase }></textarea> |
|
@ -191,25 +202,27 @@ class ExportKeysPanel extends React.Component { |
|
|
<div className="col-sm-12 col-xs-12 text-align-center"> |
|
|
<div className="col-sm-12 col-xs-12 text-align-center"> |
|
|
<button |
|
|
<button |
|
|
type="button" |
|
|
type="button" |
|
|
className="btn btn-primary waves-effect waves-light" |
|
|
className="btn btn-primary waves-effect waves-light margin-bottom-5" |
|
|
onClick={ this.exportWifKeys }>{ translate('INDEX.GET_WIF_KEYS') }</button> |
|
|
onClick={ this.exportWifKeys }>{ translate('INDEX.GET_WIF_KEYS') }</button> |
|
|
</div> |
|
|
</div> |
|
|
</form> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
{ this.state.keys && |
|
|
{ this.state.keys && |
|
|
<div className="row"> |
|
|
<div className="row"> |
|
|
<div className="col-sm-12 padding-top-15"> |
|
|
<div className="col-sm-12 padding-top-15"> |
|
|
<table className="table"> |
|
|
<table className="table no-borders"> |
|
|
<tr key={ `wif-export-table-header-pub` }> |
|
|
<tbody> |
|
|
<td className="padding-bottom-20 padding-top-20"> |
|
|
<tr key={ `wif-export-table-header-pub` }> |
|
|
<strong>{ translate('SETTINGS.ADDRESS_LIST') }</strong> |
|
|
<td className="padding-bottom-20 padding-top-20"> |
|
|
</td> |
|
|
<strong>{ translate('SETTINGS.ADDRESS_LIST') }</strong> |
|
|
<td className="padding-bottom-20 padding-top-20"> |
|
|
</td> |
|
|
<strong>{ translate('SETTINGS.WIF_KEY_LIST') }</strong> |
|
|
<td className="padding-bottom-20 padding-top-20"> |
|
|
</td> |
|
|
<strong>{ translate('SETTINGS.WIF_KEY_LIST') }</strong> |
|
|
</tr> |
|
|
</td> |
|
|
{ this.renderWifKeys() } |
|
|
</tr> |
|
|
|
|
|
{ this.renderWifKeys() } |
|
|
|
|
|
</tbody> |
|
|
</table> |
|
|
</table> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|