aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorDan Finlay <flyswatter@users.noreply.github.com>2017-03-23 06:32:39 +0800
committerGitHub <noreply@github.com>2017-03-23 06:32:39 +0800
commit33ba38df6e3d2e088442968261c740e892387411 (patch)
tree0b15cdb8d041e2563c70bfb49a99dbaf47ff6aed /ui
parent864f8b06f9f2ec56b7ffce0afe83a1d70c3c7843 (diff)
parent9ac2ce1744b5bcebe69b636925f2c952a076cbe4 (diff)
downloadtangerine-wallet-browser-33ba38df6e3d2e088442968261c740e892387411.tar
tangerine-wallet-browser-33ba38df6e3d2e088442968261c740e892387411.tar.gz
tangerine-wallet-browser-33ba38df6e3d2e088442968261c740e892387411.tar.bz2
tangerine-wallet-browser-33ba38df6e3d2e088442968261c740e892387411.tar.lz
tangerine-wallet-browser-33ba38df6e3d2e088442968261c740e892387411.tar.xz
tangerine-wallet-browser-33ba38df6e3d2e088442968261c740e892387411.tar.zst
tangerine-wallet-browser-33ba38df6e3d2e088442968261c740e892387411.zip
Merge pull request #1225 from MetaMask/i1033-spinnerfix
Fix spinner issue on seed word request
Diffstat (limited to 'ui')
-rw-r--r--ui/app/actions.js7
-rw-r--r--ui/app/reducers/app.js1
2 files changed, 5 insertions, 3 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js
index 9d6676d01..d02b7dcaa 100644
--- a/ui/app/actions.js
+++ b/ui/app/actions.js
@@ -269,11 +269,12 @@ function requestRevealSeed (password) {
dispatch(actions.showLoadingIndication())
log.debug(`background.submitPassword`)
background.submitPassword(password, (err) => {
- if (err) return dispatch(actions.displayWarning(err.message))
+ if (err) {
+ return dispatch(actions.displayWarning(err.message))
+ }
log.debug(`background.placeSeedWords`)
background.placeSeedWords((err) => {
if (err) return dispatch(actions.displayWarning(err.message))
- dispatch(actions.hideLoadingIndication())
})
})
}
@@ -296,10 +297,10 @@ function importNewAccount (strategy, args) {
dispatch(actions.showLoadingIndication('This may take a while, be patient.'))
log.debug(`background.importAccountWithStrategy`)
background.importAccountWithStrategy(strategy, args, (err) => {
- dispatch(actions.hideLoadingIndication())
if (err) return dispatch(actions.displayWarning(err.message))
log.debug(`background.getState`)
background.getState((err, newState) => {
+ dispatch(actions.hideLoadingIndication())
if (err) {
return dispatch(actions.displayWarning(err.message))
}
diff --git a/ui/app/reducers/app.js b/ui/app/reducers/app.js
index 7ea1e1d7c..b9e3f7b16 100644
--- a/ui/app/reducers/app.js
+++ b/ui/app/reducers/app.js
@@ -426,6 +426,7 @@ function reduceApp (state, action) {
case actions.DISPLAY_WARNING:
return extend(appState, {
warning: action.value,
+ isLoading: false,
})
case actions.HIDE_WARNING: