diff options
author | Frankie <frankie.pangilinan@consensys.net> | 2016-08-26 07:06:54 +0800 |
---|---|---|
committer | Frankie <frankie.pangilinan@consensys.net> | 2016-08-26 07:06:54 +0800 |
commit | 547894ed391f2d258c46ff382d4b211d18d81a7b (patch) | |
tree | 9425bee50dae3f6d254462363b5f60b837cb2e27 /ui/app/first-time | |
parent | 250cf8cc23305e33f4fc26a1711996ebc54fd9ad (diff) | |
parent | 78f73038e789f4483f728a7cc9ea1c68b0b3d7fa (diff) | |
download | tangerine-wallet-browser-547894ed391f2d258c46ff382d4b211d18d81a7b.tar tangerine-wallet-browser-547894ed391f2d258c46ff382d4b211d18d81a7b.tar.gz tangerine-wallet-browser-547894ed391f2d258c46ff382d4b211d18d81a7b.tar.bz2 tangerine-wallet-browser-547894ed391f2d258c46ff382d4b211d18d81a7b.tar.lz tangerine-wallet-browser-547894ed391f2d258c46ff382d4b211d18d81a7b.tar.xz tangerine-wallet-browser-547894ed391f2d258c46ff382d4b211d18d81a7b.tar.zst tangerine-wallet-browser-547894ed391f2d258c46ff382d4b211d18d81a7b.zip |
Merge branch 'master' into i#563forgotPassword
Diffstat (limited to 'ui/app/first-time')
-rw-r--r-- | ui/app/first-time/restore-vault.js | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/ui/app/first-time/restore-vault.js b/ui/app/first-time/restore-vault.js index 684781e50..4c1f21008 100644 --- a/ui/app/first-time/restore-vault.js +++ b/ui/app/first-time/restore-vault.js @@ -1,14 +1,14 @@ const inherits = require('util').inherits -const Component = require('react').Component +const PersistentForm = require('../../lib/persistent-form') const connect = require('react-redux').connect const h = require('react-hyperscript') const actions = require('../actions') module.exports = connect(mapStateToProps)(RestoreVaultScreen) -inherits(RestoreVaultScreen, Component) +inherits(RestoreVaultScreen, PersistentForm) function RestoreVaultScreen () { - Component.call(this) + PersistentForm.call(this) } function mapStateToProps (state) { @@ -19,6 +19,8 @@ function mapStateToProps (state) { RestoreVaultScreen.prototype.render = function () { var state = this.props + this.persistentFormParentId = 'restore-vault-form' + return ( h('.initialize-screen.flex-column.flex-center.flex-grow', [ @@ -39,6 +41,9 @@ RestoreVaultScreen.prototype.render = function () { // wallet seed entry h('h3', 'Wallet Seed'), h('textarea.twelve-word-phrase.letter-spacey', { + dataset: { + persistentFormId: 'wallet-seed', + }, placeholder: 'Enter your secret twelve word phrase here to restore your vault.', }), @@ -47,6 +52,9 @@ RestoreVaultScreen.prototype.render = function () { type: 'password', id: 'password-box', placeholder: 'New Password (min 8 chars)', + dataset: { + persistentFormId: 'password', + }, style: { width: 260, marginTop: 12, @@ -59,6 +67,9 @@ RestoreVaultScreen.prototype.render = function () { id: 'password-box-confirm', placeholder: 'Confirm Password', onKeyPress: this.onMaybeCreate.bind(this), + dataset: { + persistentFormId: 'password-confirmation', + }, style: { width: 260, marginTop: 16, |