diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2016-11-02 02:25:38 +0800 |
---|---|---|
committer | Kevin Serrano <kevgagser@gmail.com> | 2016-11-02 02:30:10 +0800 |
commit | db356a181a3fde4ad528c699f6da517053171866 (patch) | |
tree | ba339827fef6685e097d6fc247dae47f3d0a8f70 /ui/app/keychains/hd/restore-vault.js | |
parent | e2f67a2cb85552bd8fcf2f7929c14a9d028adccb (diff) | |
download | tangerine-wallet-browser-db356a181a3fde4ad528c699f6da517053171866.tar.gz 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/restore-vault.js')
-rw-r--r-- | ui/app/keychains/hd/restore-vault.js | 10 |
1 files changed, 5 insertions, 5 deletions
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)) } |