Browse Source

settings export keys addr copy btn

all-modes
pbca26 7 years ago
parent
commit
d491c9a88f
  1. 6
      react/src/components/dashboard/jumblr/jumblr.js
  2. 18
      react/src/components/dashboard/settings/settings.exportKeysPanel.js
  3. 10
      react/src/translate/en.js

6
react/src/components/dashboard/jumblr/jumblr.js

@ -128,12 +128,6 @@ class Jumblr extends React.Component {
});
}
/*toggleAddressGenMod() {
this.setState({
jumblrDepositAddressPBased: !this.state.jumblrDepositAddressPBased,
});
}*/
generateJumblrSecretAddress() {
let _jumblrSecretAddress = [];
let _apiSuccessCount = 0;

18
react/src/components/dashboard/settings/settings.exportKeysPanel.js

@ -4,6 +4,7 @@ import { connect } from 'react-redux';
import {
encryptWallet,
settingsWifkeyState,
copyCoinAddress,
} from '../../../actions/actionCreators';
import Store from '../../../store';
@ -19,6 +20,7 @@ class ExportKeysPanel extends React.Component {
this.exportWifKeys = this.exportWifKeys.bind(this);
this.exportWifKeysRaw = this.exportWifKeysRaw.bind(this);
this.toggleSeedInputVisibility = this.toggleSeedInputVisibility.bind(this);
this._copyCoinAddress = this._copyCoinAddress.bind(this);
this.updateInput = this.updateInput.bind(this);
}
@ -59,6 +61,10 @@ class ExportKeysPanel extends React.Component {
}
}
_copyCoinAddress(address) {
Store.dispatch(copyCoinAddress(address));
}
renderWifKeys() {
let items = [];
@ -80,8 +86,16 @@ class ExportKeysPanel extends React.Component {
(i === 1 && _key.indexOf('wif') > -1)) {
items.push(
<tr key={ _key }>
<td>{ _key }</td>
<td className="padding-left-15">{ _wifKeys[_key] }</td>
<td className="padding-bottom-20">{ _key.replace('wif', ' WIF') }</td>
<td className="padding-bottom-20 padding-left-15">
{ _wifKeys[_key] }
<button
className="btn btn-default btn-xs clipboard-edexaddr margin-left-10"
title={ translate('INDEX.COPY_TO_CLIPBOARD') }
onClick={ () => this._copyCoinAddress(_wifKeys[_key]) }>
<i className="icon wb-copy"></i> { translate('INDEX.COPY') }
</button>
</td>
</tr>
);
}

10
react/src/translate/en.js

@ -278,12 +278,12 @@ export const _lang = {
'WALLET_BACKUP': 'Wallet Backup',
'FIAT_CURRENCY': 'Fiat Currency',
'EXPORT_KEYS': 'Export Keys',
'ONLY_ACTIVE_WIF_KEYS': 'Only the active coin wallet wif keys will be shown here.<br>' +
'If you don\'t see a wif key for the coin you are looking for please active it by adding it from EasyDEX Dashboard.<br>' +
'You can use these wif keys to import to another coin wallets.',
'ONLY_ACTIVE_WIF_KEYS': 'Only the active coin wallet WIF keys will be shown here.<br>' +
'If you don\'t see a WIF key for the coin you are looking for please active it by adding it from EasyDEX Dashboard.<br>' +
'You can use these WIF keys to import to another coin wallets.',
'PLEASE_KEEP_KEYS_SAFE': 'Please keep these keys extra safe and secure.',
'PASSPHRASE': 'Passphrase',
'GET_WIF_KEYS': 'Get Wif Keys',
'GET_WIF_KEYS': 'Get WIF Keys',
'IMPORT_KEYS': 'Import Keys',
'IMPORT_KEYS_DESC_P1': 'This section allows you to import private key of all iguana supported coins, Assetchain, Geckochain, or PAXchain by the wallet.',
'IMPORT_KEYS_DESC_P2': 'It is not mandatory to have that coin active in the wallet for which you are executing import private key process.',
@ -590,7 +590,7 @@ export const _lang = {
'SUPPORT_TICKETS': 'Support tickets',
'GET_SLACK_INVITE': 'Get Slack invite',
'ADDRESS_LIST': 'Address list',
'WIF_KEY_LIST': 'Wif key list',
'WIF_KEY_LIST': 'WIF (Wallet Import Format) key list',
'CLI_RESPONSE': 'CLI response',
'PASSPHRASE_REQ': 'Passphrase is required.',
'SAVE_APP_CONFIG': 'Save app config',

Loading…
Cancel
Save