feat(@wallet): check for url not being a url
This commit is contained in:
parent
daae249fae
commit
0cc91fb315
|
@ -29,6 +29,15 @@ ColumnLayout {
|
|||
property int evaluationStatus: EditNetworkForm.UnTouched
|
||||
property int evaluationStatusFallBackRpc: EditNetworkForm.UnTouched
|
||||
property var evaluateRpcEndPoint: Backpressure.debounce(root, 400, function (value) {
|
||||
if(!Utils.isURL(value)) {
|
||||
if(value === mainRpcInput.text) {
|
||||
d.evaluationStatus = EditNetworkForm.InvalidURL
|
||||
}
|
||||
else if(value === failoverRpcUrlInput.text) {
|
||||
d.evaluationStatusFallBackRpc = EditNetworkForm.InvalidURL
|
||||
}
|
||||
return
|
||||
}
|
||||
root.evaluateRpcEndPoint(value)
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue