From bf223ce83c0f64b27d3a11b4c62cc283dfa7bd23 Mon Sep 17 00:00:00 2001 From: Anastasiya Semenkevich Date: Mon, 2 Oct 2023 18:45:27 +0600 Subject: [PATCH] chore(@EditNetwork): added object names --- .../Profile/views/wallet/EditNetworkForm.qml | 10 ++++++++++ .../Profile/views/wallet/EditNetworkView.qml | 2 ++ 2 files changed, 12 insertions(+) diff --git a/ui/app/AppLayouts/Profile/views/wallet/EditNetworkForm.qml b/ui/app/AppLayouts/Profile/views/wallet/EditNetworkForm.qml index c479fec205..c061de688a 100644 --- a/ui/app/AppLayouts/Profile/views/wallet/EditNetworkForm.qml +++ b/ui/app/AppLayouts/Profile/views/wallet/EditNetworkForm.qml @@ -123,6 +123,7 @@ ColumnLayout { StatusInput { Layout.fillWidth: true label: qsTr("Network name") + input.edit.objectName: "editNetworkNameInput" text: !!network ? network.chainName : "" input.enabled: false } @@ -130,12 +131,14 @@ ColumnLayout { StatusInput { Layout.fillWidth: true label: qsTr("Short name") + input.edit.objectName: "editNetworkShortNameInput" text: !!network ? network.shortName : "" input.enabled: false } StatusInput { Layout.fillWidth: true + input.edit.objectName: "editNetworkChainIdInput" label: qsTr("Chain ID") text: !!network ? network.chainId : "" input.enabled: false @@ -143,6 +146,7 @@ ColumnLayout { StatusInput { Layout.fillWidth: true + input.edit.objectName: "editNetworkSymbolInput" label: qsTr("Native Token Symbol") text: !!network ? network.nativeCurrencySymbol : "" input.enabled: false @@ -163,6 +167,7 @@ ColumnLayout { } StatusInput { id: mainRpcInput + input.edit.objectName: "editNetworkMainRpcInput" width: parent.width label: qsTr("Main JSON RPC URL") text: { @@ -204,6 +209,7 @@ ColumnLayout { StatusInput { id: failoverRpcUrlInput + input.edit.objectName: "editNetworkFailoverRpcUrlInput" Layout.fillWidth: true label: qsTr("Failover JSON RPC URL") text: { @@ -237,6 +243,7 @@ ColumnLayout { } StatusInput { + input.edit.objectName: "editNetworkExplorerInput" Layout.fillWidth: true label: qsTr("Block Explorer") text: !!network ? network.blockExplorerURL : "" @@ -245,6 +252,7 @@ ColumnLayout { StatusCheckBox { id: warningCheckbox + objectName: "editNetworkAknowledgmentCheckbox" Layout.fillWidth: true text: qsTr("I understand that changing network settings can cause unforeseen issues, errors, security risks and potentially even loss of funds.") checkState: Qt.Unchecked @@ -257,11 +265,13 @@ ColumnLayout { Layout.alignment: Qt.AlignRight spacing: 8 StatusButton { + objectName: "editNetworkRevertButton" text: qsTr("Revert to default") normalColor: "transparent" onClicked: d.revertValues() } StatusButton { + objectName: "editNetworkSaveButton" text: qsTr("Save Changes") enabled: ( d.evaluationStatusMainRpc === EditNetworkForm.Verified || diff --git a/ui/app/AppLayouts/Profile/views/wallet/EditNetworkView.qml b/ui/app/AppLayouts/Profile/views/wallet/EditNetworkView.qml index 49ebb18844..b4942a4076 100644 --- a/ui/app/AppLayouts/Profile/views/wallet/EditNetworkView.qml +++ b/ui/app/AppLayouts/Profile/views/wallet/EditNetworkView.qml @@ -21,10 +21,12 @@ ColumnLayout { StatusTabButton { leftPadding: 0 text: qsTr("Live Network") + objectName: "editNetworkLiveButton" width: implicitWidth } StatusTabButton { text: qsTr("Test Network") + objectName: "editNetworkTestButton" width: implicitWidth } }