Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Allow boolean dropdowns for contract deploy #3077

Merged
merged 3 commits into from
Nov 2, 2016
Merged

Conversation

jacogr
Copy link
Contributor

@jacogr jacogr commented Nov 1, 2016

@jacogr jacogr added A0-pleasereview 🤓 Pull request needs code review. M6-ui labels Nov 1, 2016
@chevdor
Copy link

chevdor commented Nov 1, 2016

tested, confirmed fixed. Thanks @jacogr

label={ label }
value={ params[index] ? 'true' : 'false' }
error={ paramsError[index] }
onChange={ onChangeBool }>{ boolitems }</Select>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

multiple lines for better readability? (:

@@ -168,8 +188,12 @@ export default class DetailsStep extends Component {
params.push('');
break;

case 'bool':
Copy link
Contributor

@derhuerst derhuerst Nov 2, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inputs.forEach -> inputs.map

Also, I'd rename params to defaults to make it more readable. (correct me if that's wrong)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is parameters according the the API, so it is consistent all the way through.

@ngotchac ngotchac added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Nov 2, 2016
@jacogr jacogr merged commit f3d4aa4 into master Nov 2, 2016
@jacogr jacogr deleted the jg-contract-deploy-bool branch November 2, 2016 16:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants