Merge branch 'i765-gaslimits' of github.com:MetaMask/metamask-plugin into i765-gaslimits

feature/default_network_editable
Dan Finlay 8 years ago
commit 157dd994f0
  1. 1
      ui/app/components/hex-as-decimal-input.js
  2. 20
      ui/app/components/pending-tx-details.js

@ -56,6 +56,7 @@ HexAsDecimalInput.prototype.render = function () {
color: ' #AEAEAE', color: ' #AEAEAE',
fontSize: '12px', fontSize: '12px',
marginLeft: '5px', marginLeft: '5px',
marginRight: '6px',
width: '20px', width: '20px',
}, },
}, suffix), }, suffix),

@ -40,6 +40,7 @@ PTXP.render = function () {
var maxCost = state.maxCost || txData.maxCost || '' var maxCost = state.maxCost || txData.maxCost || ''
var dataLength = txParams.data ? (txParams.data.length - 2) / 2 : 0 var dataLength = txParams.data ? (txParams.data.length - 2) / 2 : 0
var imageify = props.imageifyIdenticons === undefined ? true : props.imageifyIdenticons var imageify = props.imageifyIdenticons === undefined ? true : props.imageifyIdenticons
var advanced = state.advanced || false
log.debug(`rendering gas: ${gas}, gasPrice: ${gasPrice}, txFee: ${txFee}, maxCost: ${maxCost}`) log.debug(`rendering gas: ${gas}, gasPrice: ${gasPrice}, txFee: ${txFee}, maxCost: ${maxCost}`)
@ -108,6 +109,17 @@ PTXP.render = function () {
h('.table-box', [ h('.table-box', [
h('.row', [
h('.cell.label', 'Advanced Options'),
h('input', {
type: 'checkbox',
selected: advanced,
onChange: () => {
this.setState({advanced: !advanced})
}
})
]),
// Ether Value // Ether Value
// Currently not customizable, but easily modified // Currently not customizable, but easily modified
// in the way that gas and gasLimit currently are. // in the way that gas and gasLimit currently are.
@ -117,7 +129,7 @@ PTXP.render = function () {
]), ]),
// Gas Limit (customizable) // Gas Limit (customizable)
h('.cell.row', [ advanced ? h('.cell.row', [
h('.cell.label', 'Gas Limit'), h('.cell.label', 'Gas Limit'),
h('.cell.value', { h('.cell.value', {
}, [ }, [
@ -134,10 +146,10 @@ PTXP.render = function () {
}, },
}), }),
]), ]),
]), ]) : null,
// Gas Price (customizable) // Gas Price (customizable)
h('.cell.row', [ advanced ? h('.cell.row', [
h('.cell.label', 'Gas Price'), h('.cell.label', 'Gas Price'),
h('.cell.value', { h('.cell.value', {
}, [ }, [
@ -154,7 +166,7 @@ PTXP.render = function () {
}, },
}), }),
]), ]),
]), ]) : null,
// Max Transaction Fee (calculated) // Max Transaction Fee (calculated)
h('.cell.row', [ h('.cell.row', [

Loading…
Cancel
Save