aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/reducers/app.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-06-04 06:21:24 +0800
committerDan Finlay <dan@danfinlay.com>2016-06-04 06:21:24 +0800
commitb2b4b4dd25da0ac27fe2bcdb745ead9b193b6d9c (patch)
treeb094a08b9ebe437f5b61d8d0749ff6fd995e908f /ui/app/reducers/app.js
parentd49ef1a2e54b0a9ac7a3d23d7744990543246ec6 (diff)
parent6dec937c2a3b72cd5863edef1ced818fe32e43f0 (diff)
downloadtangerine-wallet-browser-b2b4b4dd25da0ac27fe2bcdb745ead9b193b6d9c.tar
tangerine-wallet-browser-b2b4b4dd25da0ac27fe2bcdb745ead9b193b6d9c.tar.gz
tangerine-wallet-browser-b2b4b4dd25da0ac27fe2bcdb745ead9b193b6d9c.tar.bz2
tangerine-wallet-browser-b2b4b4dd25da0ac27fe2bcdb745ead9b193b6d9c.tar.lz
tangerine-wallet-browser-b2b4b4dd25da0ac27fe2bcdb745ead9b193b6d9c.tar.xz
tangerine-wallet-browser-b2b4b4dd25da0ac27fe2bcdb745ead9b193b6d9c.tar.zst
tangerine-wallet-browser-b2b4b4dd25da0ac27fe2bcdb745ead9b193b6d9c.zip
Merge branch 'master' into display_network
Diffstat (limited to 'ui/app/reducers/app.js')
-rw-r--r--ui/app/reducers/app.js20
1 files changed, 17 insertions, 3 deletions
diff --git a/ui/app/reducers/app.js b/ui/app/reducers/app.js
index 08c2268c1..3ee9a61fe 100644
--- a/ui/app/reducers/app.js
+++ b/ui/app/reducers/app.js
@@ -25,10 +25,11 @@ function reduceApp(state, action) {
}
// confirm seed words
+ var seedWords = state.metamask.seedWords
var seedConfView = {
name: 'createVaultComplete',
+ seedWords,
}
- var seedWords = state.metamask.seedWords
var appState = extend({
menuOpen: false,
@@ -85,7 +86,7 @@ function reduceApp(state, action) {
name: 'config',
context: appState.currentView.context,
},
- transForward: true,
+ transForward: action.value,
})
case actions.SHOW_INFO_PAGE:
@@ -111,7 +112,7 @@ function reduceApp(state, action) {
return extend(appState, {
currentView: {
name: 'createVaultComplete',
- context: action.value,
+ seedWords: action.value,
},
transForward: true,
isLoading: false,
@@ -144,6 +145,18 @@ function reduceApp(state, action) {
warning: null,
})
+ // reveal seed words
+
+ case actions.REVEAL_SEED_CONFIRMATION:
+ return extend(appState, {
+ currentView: {
+ name: 'reveal-seed-conf',
+ },
+ transForward: true,
+ warning: null,
+ })
+
+
// accounts
case actions.SET_SELECTED_ACCOUNT:
@@ -198,6 +211,7 @@ function reduceApp(state, action) {
return extend(appState, {
currentView: {
name: seedWords ? 'createVaultComplete' : 'accounts',
+ seedWords,
},
transForward: true,
isLoading: false,