Allow editing of gasPrice & gas in Signer (#3777)
* Rework gas display (maintainable) * Move GasPriceSelector to ui * Allow opening of gas component (WIP) * Merge * Consistency * Adjust for Signer display * Set maximum height based on screen size * Gas editor displays in-place * Cleanups * Merge * Style fixes * Fixup stash mishap (again) * Add store test * Allow edited values to refrect on the display * Fix properties * Adjust styling to show different rows * git mv * git mv * Style fixes * Style updates * Pass gas & gasPrice with confirmation * Fix build (case) * Style fixes * Basic GasPriceEditor smoketest * manual move 1 * manual move 2 * manual move 1 * manual move 2 * NODE_ENV=test ace fix * UI smoketests * Style * Format options via formatter * Initial version * Re-add even/odd class * re-add gasLimit to embedded passing * style * Updated for passing gas & price to store * Allow gas/price overrides when none available * Fix slider value, pass as number
This commit is contained in:
@@ -66,7 +66,7 @@ class ExecuteContract extends Component {
|
||||
onFromAddressChange: PropTypes.func.isRequired
|
||||
}
|
||||
|
||||
gasStore = new GasPriceEditor.Store(this.context.api, this.props.gasLimit);
|
||||
gasStore = new GasPriceEditor.Store(this.context.api, { gasLimit: this.props.gasLimit });
|
||||
|
||||
state = {
|
||||
amount: '0',
|
||||
|
||||
@@ -112,7 +112,7 @@ export default class TransferStore {
|
||||
this.isWallet = account && account.wallet;
|
||||
this.newError = newError;
|
||||
|
||||
this.gasStore = new GasPriceStore(api, gasLimit);
|
||||
this.gasStore = new GasPriceStore(api, { gasLimit });
|
||||
|
||||
if (this.isWallet) {
|
||||
this.wallet = props.wallet;
|
||||
|
||||
@@ -80,8 +80,9 @@ class Transfer extends Component {
|
||||
<div className={ styles.hdraccount }>
|
||||
<div className={ styles.hdrimage }>
|
||||
<IdentityIcon
|
||||
inline center
|
||||
address={ account.address } />
|
||||
address={ account.address }
|
||||
center
|
||||
inline />
|
||||
</div>
|
||||
<div className={ styles.hdrdetails }>
|
||||
<div className={ styles.hdrname }>
|
||||
@@ -165,18 +166,18 @@ class Transfer extends Component {
|
||||
balance={ balance }
|
||||
extras={ extras }
|
||||
images={ images }
|
||||
senders={ senders }
|
||||
onChange={ this.store.onUpdateDetails }
|
||||
recipient={ recipient }
|
||||
recipientError={ recipientError }
|
||||
sender={ sender }
|
||||
senderError={ senderError }
|
||||
senders={ senders }
|
||||
sendersBalances={ sendersBalances }
|
||||
tag={ tag }
|
||||
total={ total }
|
||||
totalError={ totalError }
|
||||
value={ value }
|
||||
valueError={ valueError }
|
||||
onChange={ this.store.onUpdateDetails }
|
||||
wallet={ account.wallet && this.props.wallet }
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user