diff options
author | Kevin Serrano <kevin.serrano@consensys.net> | 2017-09-12 07:48:02 +0800 |
---|---|---|
committer | Kevin Serrano <kevin.serrano@consensys.net> | 2017-09-12 07:48:02 +0800 |
commit | e7c1a11b4de100f1966f639c79632a53763a8dac (patch) | |
tree | 6cce0c906031da37345addb4f29b4afa1fe096d1 /ui | |
parent | aa021b920942efd8075ca4e89cd92d50a1b21ed0 (diff) | |
download | tangerine-wallet-browser-e7c1a11b4de100f1966f639c79632a53763a8dac.tar tangerine-wallet-browser-e7c1a11b4de100f1966f639c79632a53763a8dac.tar.gz tangerine-wallet-browser-e7c1a11b4de100f1966f639c79632a53763a8dac.tar.bz2 tangerine-wallet-browser-e7c1a11b4de100f1966f639c79632a53763a8dac.tar.lz tangerine-wallet-browser-e7c1a11b4de100f1966f639c79632a53763a8dac.tar.xz tangerine-wallet-browser-e7c1a11b4de100f1966f639c79632a53763a8dac.tar.zst tangerine-wallet-browser-e7c1a11b4de100f1966f639c79632a53763a8dac.zip |
Add ability to save seed words as file.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/keychains/hd/create-vault-complete.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ui/app/keychains/hd/create-vault-complete.js b/ui/app/keychains/hd/create-vault-complete.js index c32751fff..745990351 100644 --- a/ui/app/keychains/hd/create-vault-complete.js +++ b/ui/app/keychains/hd/create-vault-complete.js @@ -3,6 +3,7 @@ const Component = require('react').Component const connect = require('react-redux').connect const h = require('react-hyperscript') const actions = require('../../actions') +const exportAsFile = require('../../util').exportAsFile module.exports = connect(mapStateToProps)(CreateVaultCompleteScreen) @@ -65,8 +66,17 @@ CreateVaultCompleteScreen.prototype.render = function () { style: { margin: '24px', fontSize: '0.9em', + marginBottom: '10px', }, }, 'I\'ve copied it somewhere safe'), + + h('button.primary', { + onClick: () => exportAsFile(`MetaMask Seed Words`, seed), + style: { + margin: '10px', + fontSize: '0.9em', + }, + }, 'Save Seed Words As File'), ]) ) } |