diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2017-03-22 00:15:12 +0800 |
---|---|---|
committer | Kevin Serrano <kevgagser@gmail.com> | 2017-03-22 00:15:12 +0800 |
commit | 605c2a7404ba235aa4894a5b6f4b6afa6b41004f (patch) | |
tree | 260012db37a1008e28993c21d5b5652c5a6c8b0c | |
parent | 10040bee497e3c9b3775dc444b3e8a7b30fab536 (diff) | |
download | tangerine-wallet-browser-605c2a7404ba235aa4894a5b6f4b6afa6b41004f.tar tangerine-wallet-browser-605c2a7404ba235aa4894a5b6f4b6afa6b41004f.tar.gz tangerine-wallet-browser-605c2a7404ba235aa4894a5b6f4b6afa6b41004f.tar.bz2 tangerine-wallet-browser-605c2a7404ba235aa4894a5b6f4b6afa6b41004f.tar.lz tangerine-wallet-browser-605c2a7404ba235aa4894a5b6f4b6afa6b41004f.tar.xz tangerine-wallet-browser-605c2a7404ba235aa4894a5b6f4b6afa6b41004f.tar.zst tangerine-wallet-browser-605c2a7404ba235aa4894a5b6f4b6afa6b41004f.zip |
Remove redundant removal of loading indicator. Integrate loading indicator disappear with display warning.
-rw-r--r-- | ui/app/actions.js | 7 | ||||
-rw-r--r-- | ui/app/reducers/app.js | 1 |
2 files changed, 3 insertions, 5 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js index 13a9cf547..ac54158d0 100644 --- a/ui/app/actions.js +++ b/ui/app/actions.js @@ -215,7 +215,7 @@ function confirmSeedWords () { dispatch(actions.showLoadingIndication()) log.debug(`background.clearSeedWordCache`) background.clearSeedWordCache((err, account) => { - dispatch(actions.hideLoadingIndication()) + // dispatch(actions.hideLoadingIndication()) if (err) { return dispatch(actions.displayWarning(err.message)) } @@ -231,7 +231,7 @@ function createNewVaultAndRestore (password, seed) { dispatch(actions.showLoadingIndication()) log.debug(`background.createNewVaultAndRestore`) background.createNewVaultAndRestore(password, seed, (err) => { - dispatch(actions.hideLoadingIndication()) + // dispatch(actions.hideLoadingIndication()) if (err) return dispatch(actions.displayWarning(err.message)) dispatch(actions.showAccountsPage()) }) @@ -270,13 +270,11 @@ function requestRevealSeed (password) { log.debug(`background.submitPassword`) background.submitPassword(password, (err) => { if (err) { - dispatch(actions.hideLoadingIndication()) return dispatch(actions.displayWarning(err.message)) } log.debug(`background.placeSeedWords`) background.placeSeedWords((err) => { if (err) return dispatch(actions.displayWarning(err.message)) - dispatch(actions.hideLoadingIndication()) }) }) } @@ -299,7 +297,6 @@ 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) => { 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: |