diff options
author | Dan <danjm.com@gmail.com> | 2017-09-23 03:57:18 +0800 |
---|---|---|
committer | Chi Kei Chan <chikeichan@gmail.com> | 2017-09-28 09:06:26 +0800 |
commit | 01816e1b2216e0cf849ec3d67f01b1e571d69fa4 (patch) | |
tree | 98793fbec7de107a824d953ec7a1a259856be592 /ui/app/reducers | |
parent | c77029ea90560b4210f9204e99314d30f9b59989 (diff) | |
download | tangerine-wallet-browser-01816e1b2216e0cf849ec3d67f01b1e571d69fa4.tar tangerine-wallet-browser-01816e1b2216e0cf849ec3d67f01b1e571d69fa4.tar.gz tangerine-wallet-browser-01816e1b2216e0cf849ec3d67f01b1e571d69fa4.tar.bz2 tangerine-wallet-browser-01816e1b2216e0cf849ec3d67f01b1e571d69fa4.tar.lz tangerine-wallet-browser-01816e1b2216e0cf849ec3d67f01b1e571d69fa4.tar.xz tangerine-wallet-browser-01816e1b2216e0cf849ec3d67f01b1e571d69fa4.tar.zst tangerine-wallet-browser-01816e1b2216e0cf849ec3d67f01b1e571d69fa4.zip |
Adds a back button to export private key modal; connects account details to same modal.
Diffstat (limited to 'ui/app/reducers')
-rw-r--r-- | ui/app/reducers/app.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/app/reducers/app.js b/ui/app/reducers/app.js index 6d805521b..4f10d9857 100644 --- a/ui/app/reducers/app.js +++ b/ui/app/reducers/app.js @@ -42,6 +42,9 @@ function reduceApp (state, action) { modalState: { name: null, }, + previousModalState: { + name: null, + } }, sidebarOpen: false, networkDropdownOpen: false, @@ -87,6 +90,7 @@ function reduceApp (state, action) { state.appState.modal, { open: true }, { modalState: action.payload }, + { previousModalState: appState.modal.modalState}, ), }) @@ -95,7 +99,8 @@ function reduceApp (state, action) { modal: Object.assign( state.appState.modal, { open: false }, - { modalState: action.payload || state.appState.modal.modalState }, + { modalState: { name: null } }, + { previousModalState: appState.modal.modalState}, ), }) |