aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/actions.js
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2016-11-01 02:35:09 +0800
committerKevin Serrano <kevgagser@gmail.com>2016-11-01 02:35:09 +0800
commit96643c222a74552d98218fe1f9fc81e493a1960f (patch)
tree9e49503ee49ca0bce8c888c286719de5eb27f1e6 /ui/app/actions.js
parent6fc498f8a030ea00bcef9b8b3400fc527fc4aeed (diff)
downloadtangerine-wallet-browser-96643c222a74552d98218fe1f9fc81e493a1960f.tar
tangerine-wallet-browser-96643c222a74552d98218fe1f9fc81e493a1960f.tar.gz
tangerine-wallet-browser-96643c222a74552d98218fe1f9fc81e493a1960f.tar.bz2
tangerine-wallet-browser-96643c222a74552d98218fe1f9fc81e493a1960f.tar.lz
tangerine-wallet-browser-96643c222a74552d98218fe1f9fc81e493a1960f.tar.xz
tangerine-wallet-browser-96643c222a74552d98218fe1f9fc81e493a1960f.tar.zst
tangerine-wallet-browser-96643c222a74552d98218fe1f9fc81e493a1960f.zip
Implement seed word confirmation page.
Remove logs. Move HD render files to ui/app.
Diffstat (limited to 'ui/app/actions.js')
-rw-r--r--ui/app/actions.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js
index a2f59cb3c..5068d1848 100644
--- a/ui/app/actions.js
+++ b/ui/app/actions.js
@@ -80,6 +80,7 @@ var actions = {
viewPendingTx: viewPendingTx,
VIEW_PENDING_TX: 'VIEW_PENDING_TX',
// app messages
+ confirmSeedWords: confirmSeedWords,
showAccountDetail: showAccountDetail,
BACK_TO_ACCOUNT_DETAIL: 'BACK_TO_ACCOUNT_DETAIL',
backToAccountDetail: backToAccountDetail,
@@ -172,6 +173,21 @@ function tryUnlockMetamask (password) {
}
}
+function confirmSeedWords () {
+ return (dispatch) => {
+ dispatch(actions.showLoadingIndication())
+ background.clearSeedWordCache((err, account) => {
+ dispatch(actions.hideLoadingIndication())
+ if (err) {
+ return dispatch(actions.showWarning(err.message))
+ }
+
+ console.log('Seed word cache cleared. ' + account)
+ dispatch(actions.showAccountDetail(account))
+ })
+ }
+}
+
function createNewVault (password, entropy) {
return (dispatch) => {
// dispatch(actions.createNewVaultInProgress())