aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/conf-tx.js
diff options
context:
space:
mode:
authorKevin Serrano <kevin.serrano@consensys.net>2017-09-14 23:35:48 +0800
committerKevin Serrano <kevin.serrano@consensys.net>2017-09-14 23:35:48 +0800
commitcb8856597cb650e282e7209f43547a5f9328de28 (patch)
tree842b64aea519c7041bc4fbf2a6f31f5d17f57cb8 /ui/app/conf-tx.js
parent162aedb30b94890935658921b0dd399f43d6cd65 (diff)
parent1d3cd9768cdd372d02e7e34674dde9d86af536f5 (diff)
downloadtangerine-wallet-browser-cb8856597cb650e282e7209f43547a5f9328de28.tar
tangerine-wallet-browser-cb8856597cb650e282e7209f43547a5f9328de28.tar.gz
tangerine-wallet-browser-cb8856597cb650e282e7209f43547a5f9328de28.tar.bz2
tangerine-wallet-browser-cb8856597cb650e282e7209f43547a5f9328de28.tar.lz
tangerine-wallet-browser-cb8856597cb650e282e7209f43547a5f9328de28.tar.xz
tangerine-wallet-browser-cb8856597cb650e282e7209f43547a5f9328de28.tar.zst
tangerine-wallet-browser-cb8856597cb650e282e7209f43547a5f9328de28.zip
Merge branch 'master' into new-currency-test
Diffstat (limited to 'ui/app/conf-tx.js')
-rw-r--r--ui/app/conf-tx.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/ui/app/conf-tx.js b/ui/app/conf-tx.js
index 34727ff78..1ee4166f7 100644
--- a/ui/app/conf-tx.js
+++ b/ui/app/conf-tx.js
@@ -52,6 +52,8 @@ ConfirmTxScreen.prototype.render = function () {
log.info(`rendering a combined ${unconfTxList.length} unconf msg & txs`)
if (unconfTxList.length === 0) return h(Loading, { isLoading: true })
+ const unconfTxListLength = unconfTxList.length
+
return (
h('.flex-column.flex-grow', [
@@ -101,10 +103,12 @@ ConfirmTxScreen.prototype.render = function () {
conversionRate,
currentCurrency,
blockGasLimit,
+ unconfTxListLength,
// Actions
buyEth: this.buyEth.bind(this, txParams.from || props.selectedAddress),
sendTransaction: this.sendTransaction.bind(this),
cancelTransaction: this.cancelTransaction.bind(this, txData),
+ cancelAllTransactions: this.cancelAllTransactions.bind(this, unconfTxList),
signMessage: this.signMessage.bind(this, txData),
signPersonalMessage: this.signPersonalMessage.bind(this, txData),
cancelMessage: this.cancelMessage.bind(this, txData),
@@ -151,6 +155,12 @@ ConfirmTxScreen.prototype.cancelTransaction = function (txData, event) {
this.props.dispatch(actions.cancelTx(txData))
}
+ConfirmTxScreen.prototype.cancelAllTransactions = function (unconfTxList, event) {
+ this.stopPropagation(event)
+ event.preventDefault()
+ this.props.dispatch(actions.cancelAllTx(unconfTxList))
+}
+
ConfirmTxScreen.prototype.signMessage = function (msgData, event) {
log.info('conf-tx.js: signing message')
var params = msgData.msgParams