aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/actions.js
diff options
context:
space:
mode:
authorDan J Miller <danjm.com@gmail.com>2018-02-08 08:38:55 +0800
committerGitHub <noreply@github.com>2018-02-08 08:38:55 +0800
commit7f151b861cc3a565d3feefc50b3be25ab4490ac8 (patch)
tree4b0ec57e7fb316ff835748e0cabda8c2012b6345 /ui/app/actions.js
parent9db0a32dac81ad071f3c15651ce5fb830d2ddf4a (diff)
downloadtangerine-wallet-browser-7f151b861cc3a565d3feefc50b3be25ab4490ac8.tar.gz
tangerine-wallet-browser-7f151b861cc3a565d3feefc50b3be25ab4490ac8.tar.zst
tangerine-wallet-browser-7f151b861cc3a565d3feefc50b3be25ab4490ac8.zip
[NewUI] Opens to full screen when restoring from seed. (#3201)
* Opens to full screen when restoring from seed. * Remove redundant parameter in actions.markPasswordForgotten call.
Diffstat (limited to 'ui/app/actions.js')
-rw-r--r--ui/app/actions.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js
index c52b3cf93..d0436ad21 100644
--- a/ui/app/actions.js
+++ b/ui/app/actions.js
@@ -47,6 +47,8 @@ var actions = {
SHOW_RESTORE_VAULT: 'SHOW_RESTORE_VAULT',
FORGOT_PASSWORD: 'FORGOT_PASSWORD',
forgotPassword: forgotPassword,
+ markPasswordForgotten,
+ unMarkPasswordForgotten,
SHOW_INIT_MENU: 'SHOW_INIT_MENU',
SHOW_NEW_VAULT_SEED: 'SHOW_NEW_VAULT_SEED',
SHOW_INFO_PAGE: 'SHOW_INFO_PAGE',
@@ -819,6 +821,28 @@ function showRestoreVault () {
}
}
+function markPasswordForgotten () {
+ return (dispatch) => {
+ dispatch(actions.showLoadingIndication())
+ return background.markPasswordForgotten(() => {
+ dispatch(actions.hideLoadingIndication())
+ dispatch(actions.forgotPassword())
+ forceUpdateMetamaskState(dispatch)
+ })
+ }
+}
+
+function unMarkPasswordForgotten () {
+ return (dispatch) => {
+ dispatch(actions.showLoadingIndication())
+ return background.unMarkPasswordForgotten(() => {
+ dispatch(actions.hideLoadingIndication())
+ dispatch(actions.forgotPassword())
+ forceUpdateMetamaskState(dispatch)
+ })
+ }
+}
+
function forgotPassword () {
return {
type: actions.FORGOT_PASSWORD,