aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/keychains/hd
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2016-11-02 02:25:38 +0800
committerKevin Serrano <kevgagser@gmail.com>2016-11-02 02:30:10 +0800
commitdb356a181a3fde4ad528c699f6da517053171866 (patch)
treeba339827fef6685e097d6fc247dae47f3d0a8f70 /ui/app/keychains/hd
parente2f67a2cb85552bd8fcf2f7929c14a9d028adccb (diff)
downloadtangerine-wallet-browser-db356a181a3fde4ad528c699f6da517053171866.tar
tangerine-wallet-browser-db356a181a3fde4ad528c699f6da517053171866.tar.gz
tangerine-wallet-browser-db356a181a3fde4ad528c699f6da517053171866.tar.bz2
tangerine-wallet-browser-db356a181a3fde4ad528c699f6da517053171866.tar.lz
tangerine-wallet-browser-db356a181a3fde4ad528c699f6da517053171866.tar.xz
tangerine-wallet-browser-db356a181a3fde4ad528c699f6da517053171866.tar.zst
tangerine-wallet-browser-db356a181a3fde4ad528c699f6da517053171866.zip
Made progress on parity for MultiVault
- Deleted some unused items - Renamed files and paths to match with new locations. - Modified keyring controller logic to separate concerns. - Fix account naming issues. - Enable creation of new vault with default HD keyring. - Formatting issues.
Diffstat (limited to 'ui/app/keychains/hd')
-rw-r--r--ui/app/keychains/hd/recover-seed/confirmation.js4
-rw-r--r--ui/app/keychains/hd/restore-vault.js10
2 files changed, 7 insertions, 7 deletions
diff --git a/ui/app/keychains/hd/recover-seed/confirmation.js b/ui/app/keychains/hd/recover-seed/confirmation.js
index 55b18025f..83dbc270f 100644
--- a/ui/app/keychains/hd/recover-seed/confirmation.js
+++ b/ui/app/keychains/hd/recover-seed/confirmation.js
@@ -3,7 +3,7 @@ const inherits = require('util').inherits
const Component = require('react').Component
const connect = require('react-redux').connect
const h = require('react-hyperscript')
-const actions = require('../actions')
+const actions = require('../../../actions')
module.exports = connect(mapStateToProps)(RevealSeedConfirmatoin)
@@ -68,7 +68,7 @@ RevealSeedConfirmatoin.prototype.render = function () {
style: {
marginTop: '12px',
},
- }, 'Enter the phrase "I understand" to proceed.'),
+ }, `Enter the phrase "${this.confirmationPhrase}" to proceed.`),
// confirm confirmation
h('input.large-input.letter-spacey', {
diff --git a/ui/app/keychains/hd/restore-vault.js b/ui/app/keychains/hd/restore-vault.js
index 4c1f21008..15690a159 100644
--- a/ui/app/keychains/hd/restore-vault.js
+++ b/ui/app/keychains/hd/restore-vault.js
@@ -1,8 +1,8 @@
const inherits = require('util').inherits
-const PersistentForm = require('../../lib/persistent-form')
+const PersistentForm = require('../../../lib/persistent-form')
const connect = require('react-redux').connect
const h = require('react-hyperscript')
-const actions = require('../actions')
+const actions = require('../../actions')
module.exports = connect(mapStateToProps)(RestoreVaultScreen)
@@ -96,7 +96,7 @@ RestoreVaultScreen.prototype.render = function () {
// submit
h('button.primary', {
- onClick: this.restoreVault.bind(this),
+ onClick: this.createNewVaultAndRestore.bind(this),
}, 'OK'),
]),
@@ -116,7 +116,7 @@ RestoreVaultScreen.prototype.onMaybeCreate = function (event) {
}
}
-RestoreVaultScreen.prototype.restoreVault = function () {
+RestoreVaultScreen.prototype.createNewVaultAndRestore = function () {
// check password
var passwordBox = document.getElementById('password-box')
var password = passwordBox.value
@@ -144,5 +144,5 @@ RestoreVaultScreen.prototype.restoreVault = function () {
// submit
this.warning = null
this.props.dispatch(actions.displayWarning(this.warning))
- this.props.dispatch(actions.recoverFromSeed(password, seed))
+ this.props.dispatch(actions.createNewVaultAndRestore(password, seed))
}