From 5f980a1a8fa405f738bb7c2b6e243a0ca5ea8eee Mon Sep 17 00:00:00 2001 From: Valentina1133 <141633821+Valentina1133@users.noreply.github.com> Date: Fri, 19 Apr 2024 20:07:01 +0700 Subject: [PATCH] Chore/add object name advanced settings, token preview boxes and sign transaction buttons (#14488) * chore: added object name for manage community on testnet * chore: added object names for buttons in sign transactions popup * chore: added object names for preview boxes --- ui/app/AppLayouts/Communities/panels/TokenInfoPanel.qml | 5 +++++ .../AppLayouts/Communities/popups/SignTransactionsPopup.qml | 2 ++ ui/app/AppLayouts/Profile/views/AdvancedView.qml | 1 + 3 files changed, 8 insertions(+) diff --git a/ui/app/AppLayouts/Communities/panels/TokenInfoPanel.qml b/ui/app/AppLayouts/Communities/panels/TokenInfoPanel.qml index a5b8556ebe..7511c1e73e 100644 --- a/ui/app/AppLayouts/Communities/panels/TokenInfoPanel.qml +++ b/ui/app/AppLayouts/Communities/panels/TokenInfoPanel.qml @@ -168,6 +168,7 @@ Control { CustomPreviewBox { id: symbolBox + objectName: "symbolBox" label: qsTr("Symbol") value: token.symbol @@ -175,6 +176,7 @@ Control { CustomPreviewBox { id: totalbox + objectName: "totalBox" label: qsTr("Total") value: token.infiniteSupply @@ -189,6 +191,7 @@ Control { CustomPreviewBox { id: remainingBox + objectName: "remainingBox" readonly property int remainingTokens: root.preview ? token.supply : token.remainingTokens @@ -208,12 +211,14 @@ Control { } CustomPreviewBox { + objectName: "transferableBox" visible: !root.isAssetPanel label: qsTr("Transferable") value: token.transferable ? qsTr("Yes") : qsTr("No") } CustomPreviewBox { + objectName: "destructibleBox" visible: !root.isAssetPanel label: qsTr("Destructible") diff --git a/ui/app/AppLayouts/Communities/popups/SignTransactionsPopup.qml b/ui/app/AppLayouts/Communities/popups/SignTransactionsPopup.qml index bf6e832711..204d688023 100644 --- a/ui/app/AppLayouts/Communities/popups/SignTransactionsPopup.qml +++ b/ui/app/AppLayouts/Communities/popups/SignTransactionsPopup.qml @@ -48,6 +48,7 @@ StatusDialog { spacing: Style.current.padding rightButtons: ObjectModel { StatusButton { + objectName: "cancelButton" text: qsTr("Cancel") type: StatusBaseButton.Type.Danger onClicked: { @@ -56,6 +57,7 @@ StatusDialog { } } StatusButton { + objectName: "signTransactionButton" enabled: root.errorText === "" && !root.isFeeLoading icon.name: "password" text: qsTr("Sign transaction") diff --git a/ui/app/AppLayouts/Profile/views/AdvancedView.qml b/ui/app/AppLayouts/Profile/views/AdvancedView.qml index 5c01e3dfa3..7feb166493 100644 --- a/ui/app/AppLayouts/Profile/views/AdvancedView.qml +++ b/ui/app/AppLayouts/Profile/views/AdvancedView.qml @@ -426,6 +426,7 @@ SettingsContentBase { StatusSettingsLineButton { anchors.leftMargin: 0 anchors.rightMargin: 0 + objectName: "manageCommunitiesOnTestnetButton" text: qsTr("Manage communities on testnet") isSwitch: true switchChecked: root.advancedStore.isManageCommunityOnTestModeEnabled