diff options
author | sdtsui <szehungdanieltsui@gmail.com> | 2017-07-30 11:55:55 +0800 |
---|---|---|
committer | sdtsui <szehungdanieltsui@gmail.com> | 2017-07-30 11:55:55 +0800 |
commit | 35ff4c195c4ff91a90b7572f07060b0213898f22 (patch) | |
tree | e5425652fad6fe396af5fc526693a2ea03200942 /ui/app | |
parent | 8ace4710ffa1ca56e59e5888fd076fecfae8a911 (diff) | |
download | tangerine-wallet-browser-35ff4c195c4ff91a90b7572f07060b0213898f22.tar tangerine-wallet-browser-35ff4c195c4ff91a90b7572f07060b0213898f22.tar.gz tangerine-wallet-browser-35ff4c195c4ff91a90b7572f07060b0213898f22.tar.bz2 tangerine-wallet-browser-35ff4c195c4ff91a90b7572f07060b0213898f22.tar.lz tangerine-wallet-browser-35ff4c195c4ff91a90b7572f07060b0213898f22.tar.xz tangerine-wallet-browser-35ff4c195c4ff91a90b7572f07060b0213898f22.tar.zst tangerine-wallet-browser-35ff4c195c4ff91a90b7572f07060b0213898f22.zip |
[WIP] Isolate form logic from rest of confirmation UI
Diffstat (limited to 'ui/app')
-rw-r--r-- | ui/app/components/pending-tx.js | 49 |
1 files changed, 27 insertions, 22 deletions
diff --git a/ui/app/components/pending-tx.js b/ui/app/components/pending-tx.js index 5324ccd64..2414a9759 100644 --- a/ui/app/components/pending-tx.js +++ b/ui/app/components/pending-tx.js @@ -75,11 +75,8 @@ PendingTx.prototype.render = function () { key: txMeta.id, }, [ - h('form#pending-tx-form', { - onSubmit: this.onSubmit.bind(this), - + h('div', { }, [ - // tx info h('div', [ @@ -305,24 +302,32 @@ PendingTx.prototype.render = function () { }, 'Buy Ether') : null, - h('button', { - onClick: (event) => { - this.resetGasFields() - event.preventDefault() - }, - }, 'Reset'), - - // Accept Button - h('input.confirm.btn-green', { - type: 'submit', - value: 'SUBMIT', - style: { marginLeft: '10px' }, - disabled: insufficientBalance || !this.state.valid || !isValidAddress || this.state.submitting, - }), - - h('button.cancel.btn-red', { - onClick: props.cancelTransaction, - }, 'Reject'), + + h('form#pending-tx-form', { + onSubmit: this.onSubmit.bind(this), + }, [ + // Reset Button + h('button', { + onClick: (event) => { + this.resetGasFields() + event.preventDefault() + }, + }, 'Reset'), + + // Accept Button + h('input.confirm.btn-green', { + type: 'submit', + value: 'SUBMIT', + style: { marginLeft: '10px' }, + disabled: insufficientBalance || !this.state.valid || !isValidAddress || this.state.submitting, + }), + + // Cancel Button + h('button.cancel.btn-red', { + onClick: props.cancelTransaction, + }, 'Reject'), + ]), + ]), ]), ]) |