mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-25 04:47:17 +00:00
Changed validators to regexp validators
IntValidator limits to 32bit int (JavaScript limitation) and therefor the input fields are limited in length.
This commit is contained in:
parent
7f94b266c7
commit
faa3073625
@ -61,7 +61,7 @@ Component {
|
||||
id: txValue
|
||||
width: 200
|
||||
placeholderText: "Amount"
|
||||
validator: IntValidator { }
|
||||
validator: RegExpValidator { regExp: /\d*/ }
|
||||
onTextChanged: {
|
||||
contractFormReady()
|
||||
}
|
||||
@ -69,7 +69,7 @@ Component {
|
||||
TextField {
|
||||
id: txGas
|
||||
width: 200
|
||||
validator: IntValidator { }
|
||||
validator: RegExpValidator { regExp: /\d*/ }
|
||||
placeholderText: "Gas"
|
||||
onTextChanged: {
|
||||
contractFormReady()
|
||||
@ -79,7 +79,7 @@ Component {
|
||||
id: txGasPrice
|
||||
width: 200
|
||||
placeholderText: "Gas price"
|
||||
validator: IntValidator { }
|
||||
validator: RegExpValidator { regExp: /\d*/ }
|
||||
onTextChanged: {
|
||||
contractFormReady()
|
||||
}
|
||||
|
@ -56,9 +56,10 @@ Component {
|
||||
}
|
||||
TextField {
|
||||
id: txSimpleValue
|
||||
width: 200
|
||||
placeholderText: "Amount"
|
||||
anchors.rightMargin: 5
|
||||
validator: IntValidator { }
|
||||
validator: RegExpValidator { regExp: /\d*/ }
|
||||
onTextChanged: { checkFormState() }
|
||||
}
|
||||
Button {
|
||||
|
Loading…
Reference in New Issue
Block a user