-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi param angles content #1307
Conversation
src/multiParamManager.js
Outdated
@@ -2,6 +2,7 @@ | |||
|
|||
var yo = require('yo-yo') | |||
var css = require('./universal-dapp-styles') | |||
// var helper = require('../remix/remix-lib/src/execution/txHelper') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should perhaps remove the comment if this is not going to be readded in the future
} | ||
|
||
makeMultiVal () { | ||
var inputString = this.basicInputField.value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we might need to wrap with double quote here
params = params.replace(/(^|,\s+|,)(\d+)(\s+,|,|$)/g, '$1"$2"$3') // replace non quoted number by quoted number
params = params.replace(/(^|,\s+|,)(0[xX][0-9a-fA-F]+)(\s+,|,|$)/g, '$1"$2"$3') // replace non quoted hex string by quoted hex string
cause the JSON.parse will break if some values are not wrapped ...
src/multiParamManager.js
Outdated
var multiOnClick = () => { | ||
var valArray = multiFields.querySelectorAll('input') | ||
var valArray = this.multiFields.querySelectorAll('input') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps we can use getMultiValsString
here
5031c7e
to
6e11efe
Compare
372784e
to
156732d
Compare
156732d
to
2d549dc
Compare
Automatically wrap strings and numbers and 0x in double quotes from the multi inputs ( the expanded view) & copying over the content between the expanded and contracted views.