diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2017-03-01 08:36:05 +0800 |
---|---|---|
committer | Kevin Serrano <kevgagser@gmail.com> | 2017-03-01 08:36:05 +0800 |
commit | a600ccd4f863d7a473392fc283f4cec248225a27 (patch) | |
tree | c91dae0c308fb41a461fe85ce4cbeca5b49211df /ui/app/components/pending-tx.js | |
parent | af66e2b9acc4fc6d807d9625d1022214196d233d (diff) | |
download | tangerine-wallet-browser-a600ccd4f863d7a473392fc283f4cec248225a27.tar tangerine-wallet-browser-a600ccd4f863d7a473392fc283f4cec248225a27.tar.gz tangerine-wallet-browser-a600ccd4f863d7a473392fc283f4cec248225a27.tar.bz2 tangerine-wallet-browser-a600ccd4f863d7a473392fc283f4cec248225a27.tar.lz tangerine-wallet-browser-a600ccd4f863d7a473392fc283f4cec248225a27.tar.xz tangerine-wallet-browser-a600ccd4f863d7a473392fc283f4cec248225a27.tar.zst tangerine-wallet-browser-a600ccd4f863d7a473392fc283f4cec248225a27.zip |
Add reset button to reset gas fields.
Diffstat (limited to 'ui/app/components/pending-tx.js')
-rw-r--r-- | ui/app/components/pending-tx.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ui/app/components/pending-tx.js b/ui/app/components/pending-tx.js index 3c898edec..d39cbc0f8 100644 --- a/ui/app/components/pending-tx.js +++ b/ui/app/components/pending-tx.js @@ -2,6 +2,7 @@ const Component = require('react').Component const h = require('react-hyperscript') const inherits = require('util').inherits const PendingTxDetails = require('./pending-tx-details') +const extend = require('xtend') module.exports = PendingTx @@ -12,6 +13,7 @@ function PendingTx () { PendingTx.prototype.render = function () { const props = this.props + const newProps = extend(props, {ref: 'details'}) const txData = props.txData return ( @@ -21,7 +23,7 @@ PendingTx.prototype.render = function () { }, [ // tx info - h(PendingTxDetails, props), + h(PendingTxDetails, newProps), h('style', ` .conf-buttons button { @@ -71,6 +73,12 @@ PendingTx.prototype.render = function () { h('button.cancel.btn-red', { onClick: props.cancelTransaction, }, 'Reject'), + + h('button', { + onClick: () => { + this.refs.details.resetGasFields() + }, + }, 'Reset'), ]), ]) ) |