mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-01 01:06:07 +00:00
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…
x
Reference in New Issue
Block a user