diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2017-03-23 06:41:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-23 06:41:24 +0800 |
commit | 463eb01d1d523f5094793a58fbdf5345366ca92a (patch) | |
tree | 68bb03921fe5953fd2bb88dfd1be8f92d3940dbc | |
parent | 41e276b0367281bb3e6481d0e7c6af89b7319f90 (diff) | |
parent | 5b81f7120b3c7c3c3a16246a9d5705fcab4f91b9 (diff) | |
download | tangerine-wallet-browser-463eb01d1d523f5094793a58fbdf5345366ca92a.tar tangerine-wallet-browser-463eb01d1d523f5094793a58fbdf5345366ca92a.tar.gz tangerine-wallet-browser-463eb01d1d523f5094793a58fbdf5345366ca92a.tar.bz2 tangerine-wallet-browser-463eb01d1d523f5094793a58fbdf5345366ca92a.tar.lz tangerine-wallet-browser-463eb01d1d523f5094793a58fbdf5345366ca92a.tar.xz tangerine-wallet-browser-463eb01d1d523f5094793a58fbdf5345366ca92a.tar.zst tangerine-wallet-browser-463eb01d1d523f5094793a58fbdf5345366ca92a.zip |
Merge branch 'master' into hide-password
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | app/scripts/lib/eth-store.js | 6 | ||||
-rw-r--r-- | ui/app/actions.js | 7 | ||||
-rw-r--r-- | ui/app/reducers/app.js | 1 |
4 files changed, 11 insertions, 4 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6621d89f4..ce9d013e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - Added an address book functionality that remembers the last 15 unique addresses sent to. - Can now change network to custom RPC URL from lock screen. - Removed support for old, lightwallet based vault. Users who have not opened app in over a month will need to recover with their seed phrase. This will allow Firefox support sooner. +- Fixed bug where spinner wouldn't disappear on incorrect password submission on seed word reveal. - Polish the private key UI. ## 3.4.0 2017-3-8 diff --git a/app/scripts/lib/eth-store.js b/app/scripts/lib/eth-store.js index 8812a507b..243253df2 100644 --- a/app/scripts/lib/eth-store.js +++ b/app/scripts/lib/eth-store.js @@ -19,6 +19,8 @@ class EthereumStore extends ObservableStore { super({ accounts: {}, transactions: {}, + currentBlockNumber: '0', + currentBlockHash: '', }) this._provider = opts.provider this._query = new EthQuery(this._provider) @@ -69,6 +71,8 @@ class EthereumStore extends ObservableStore { _updateForBlock (block) { const blockNumber = '0x' + block.number.toString('hex') this._currentBlockNumber = blockNumber + this.updateState({ currentBlockNumber: parseInt(blockNumber) }) + this.updateState({ currentBlockHash: `0x${block.hash.toString('hex')}`}) async.parallel([ this._updateAccounts.bind(this), this._updateTransactions.bind(this, blockNumber), @@ -129,4 +133,4 @@ class EthereumStore extends ObservableStore { } -module.exports = EthereumStore
\ No newline at end of file +module.exports = EthereumStore 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: |