chore(@EditNetwork): added object names
This commit is contained in:
parent
ac1adcea32
commit
bf223ce83c
|
@ -123,6 +123,7 @@ ColumnLayout {
|
||||||
StatusInput {
|
StatusInput {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
label: qsTr("Network name")
|
label: qsTr("Network name")
|
||||||
|
input.edit.objectName: "editNetworkNameInput"
|
||||||
text: !!network ? network.chainName : ""
|
text: !!network ? network.chainName : ""
|
||||||
input.enabled: false
|
input.enabled: false
|
||||||
}
|
}
|
||||||
|
@ -130,12 +131,14 @@ ColumnLayout {
|
||||||
StatusInput {
|
StatusInput {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
label: qsTr("Short name")
|
label: qsTr("Short name")
|
||||||
|
input.edit.objectName: "editNetworkShortNameInput"
|
||||||
text: !!network ? network.shortName : ""
|
text: !!network ? network.shortName : ""
|
||||||
input.enabled: false
|
input.enabled: false
|
||||||
}
|
}
|
||||||
|
|
||||||
StatusInput {
|
StatusInput {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
input.edit.objectName: "editNetworkChainIdInput"
|
||||||
label: qsTr("Chain ID")
|
label: qsTr("Chain ID")
|
||||||
text: !!network ? network.chainId : ""
|
text: !!network ? network.chainId : ""
|
||||||
input.enabled: false
|
input.enabled: false
|
||||||
|
@ -143,6 +146,7 @@ ColumnLayout {
|
||||||
|
|
||||||
StatusInput {
|
StatusInput {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
input.edit.objectName: "editNetworkSymbolInput"
|
||||||
label: qsTr("Native Token Symbol")
|
label: qsTr("Native Token Symbol")
|
||||||
text: !!network ? network.nativeCurrencySymbol : ""
|
text: !!network ? network.nativeCurrencySymbol : ""
|
||||||
input.enabled: false
|
input.enabled: false
|
||||||
|
@ -163,6 +167,7 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
StatusInput {
|
StatusInput {
|
||||||
id: mainRpcInput
|
id: mainRpcInput
|
||||||
|
input.edit.objectName: "editNetworkMainRpcInput"
|
||||||
width: parent.width
|
width: parent.width
|
||||||
label: qsTr("Main JSON RPC URL")
|
label: qsTr("Main JSON RPC URL")
|
||||||
text: {
|
text: {
|
||||||
|
@ -204,6 +209,7 @@ ColumnLayout {
|
||||||
|
|
||||||
StatusInput {
|
StatusInput {
|
||||||
id: failoverRpcUrlInput
|
id: failoverRpcUrlInput
|
||||||
|
input.edit.objectName: "editNetworkFailoverRpcUrlInput"
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
label: qsTr("Failover JSON RPC URL")
|
label: qsTr("Failover JSON RPC URL")
|
||||||
text: {
|
text: {
|
||||||
|
@ -237,6 +243,7 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
|
|
||||||
StatusInput {
|
StatusInput {
|
||||||
|
input.edit.objectName: "editNetworkExplorerInput"
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
label: qsTr("Block Explorer")
|
label: qsTr("Block Explorer")
|
||||||
text: !!network ? network.blockExplorerURL : ""
|
text: !!network ? network.blockExplorerURL : ""
|
||||||
|
@ -245,6 +252,7 @@ ColumnLayout {
|
||||||
|
|
||||||
StatusCheckBox {
|
StatusCheckBox {
|
||||||
id: warningCheckbox
|
id: warningCheckbox
|
||||||
|
objectName: "editNetworkAknowledgmentCheckbox"
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
text: qsTr("I understand that changing network settings can cause unforeseen issues, errors, security risks and potentially even loss of funds.")
|
text: qsTr("I understand that changing network settings can cause unforeseen issues, errors, security risks and potentially even loss of funds.")
|
||||||
checkState: Qt.Unchecked
|
checkState: Qt.Unchecked
|
||||||
|
@ -257,11 +265,13 @@ ColumnLayout {
|
||||||
Layout.alignment: Qt.AlignRight
|
Layout.alignment: Qt.AlignRight
|
||||||
spacing: 8
|
spacing: 8
|
||||||
StatusButton {
|
StatusButton {
|
||||||
|
objectName: "editNetworkRevertButton"
|
||||||
text: qsTr("Revert to default")
|
text: qsTr("Revert to default")
|
||||||
normalColor: "transparent"
|
normalColor: "transparent"
|
||||||
onClicked: d.revertValues()
|
onClicked: d.revertValues()
|
||||||
}
|
}
|
||||||
StatusButton {
|
StatusButton {
|
||||||
|
objectName: "editNetworkSaveButton"
|
||||||
text: qsTr("Save Changes")
|
text: qsTr("Save Changes")
|
||||||
enabled: (
|
enabled: (
|
||||||
d.evaluationStatusMainRpc === EditNetworkForm.Verified ||
|
d.evaluationStatusMainRpc === EditNetworkForm.Verified ||
|
||||||
|
|
|
@ -21,10 +21,12 @@ ColumnLayout {
|
||||||
StatusTabButton {
|
StatusTabButton {
|
||||||
leftPadding: 0
|
leftPadding: 0
|
||||||
text: qsTr("Live Network")
|
text: qsTr("Live Network")
|
||||||
|
objectName: "editNetworkLiveButton"
|
||||||
width: implicitWidth
|
width: implicitWidth
|
||||||
}
|
}
|
||||||
StatusTabButton {
|
StatusTabButton {
|
||||||
text: qsTr("Test Network")
|
text: qsTr("Test Network")
|
||||||
|
objectName: "editNetworkTestButton"
|
||||||
width: implicitWidth
|
width: implicitWidth
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue