aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authordavidp94 <david@vietnamese.ninja>2017-08-15 12:51:39 +0800
committerdavidp94 <david@vietnamese.ninja>2017-08-15 12:51:39 +0800
commitf52ef5d49657d126a2575c91c83481209e8ef0ab (patch)
tree7aaed99d4d6c6cd3f70c115344f5f8213009798d /ui
parent39424cdf457e8348b50dde2588ad173aa4787fca (diff)
downloadtangerine-wallet-browser-f52ef5d49657d126a2575c91c83481209e8ef0ab.tar
tangerine-wallet-browser-f52ef5d49657d126a2575c91c83481209e8ef0ab.tar.gz
tangerine-wallet-browser-f52ef5d49657d126a2575c91c83481209e8ef0ab.tar.bz2
tangerine-wallet-browser-f52ef5d49657d126a2575c91c83481209e8ef0ab.tar.lz
tangerine-wallet-browser-f52ef5d49657d126a2575c91c83481209e8ef0ab.tar.xz
tangerine-wallet-browser-f52ef5d49657d126a2575c91c83481209e8ef0ab.tar.zst
tangerine-wallet-browser-f52ef5d49657d126a2575c91c83481209e8ef0ab.zip
fix goHome
Diffstat (limited to 'ui')
-rw-r--r--ui/app/actions.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js
index 3b6b87b00..a692267cb 100644
--- a/ui/app/actions.js
+++ b/ui/app/actions.js
@@ -473,8 +473,12 @@ function cancelTx (txData) {
function cancelAllTx (txsData) {
return (dispatch) => {
- txsData.forEach((txData) => dispatch(actions.cancelTx(txData)))
- dispatch(actions.goHome())
+ txsData.forEach((txData, i) => {
+ background.cancelTransaction(txData.id, () => {
+ dispatch(actions.completedTx(txData.id))
+ i === txsData.length - 1 ? dispatch(actions.goHome()) : null
+ })
+ })
}
}
//