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
This commit is contained in:
Valentina1133 2024-04-19 20:07:01 +07:00 committed by GitHub
parent 6260519e66
commit 5f980a1a8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 0 deletions

View File

@ -168,6 +168,7 @@ Control {
CustomPreviewBox { CustomPreviewBox {
id: symbolBox id: symbolBox
objectName: "symbolBox"
label: qsTr("Symbol") label: qsTr("Symbol")
value: token.symbol value: token.symbol
@ -175,6 +176,7 @@ Control {
CustomPreviewBox { CustomPreviewBox {
id: totalbox id: totalbox
objectName: "totalBox"
label: qsTr("Total") label: qsTr("Total")
value: token.infiniteSupply value: token.infiniteSupply
@ -189,6 +191,7 @@ Control {
CustomPreviewBox { CustomPreviewBox {
id: remainingBox id: remainingBox
objectName: "remainingBox"
readonly property int remainingTokens: root.preview ? token.supply : token.remainingTokens readonly property int remainingTokens: root.preview ? token.supply : token.remainingTokens
@ -208,12 +211,14 @@ Control {
} }
CustomPreviewBox { CustomPreviewBox {
objectName: "transferableBox"
visible: !root.isAssetPanel visible: !root.isAssetPanel
label: qsTr("Transferable") label: qsTr("Transferable")
value: token.transferable ? qsTr("Yes") : qsTr("No") value: token.transferable ? qsTr("Yes") : qsTr("No")
} }
CustomPreviewBox { CustomPreviewBox {
objectName: "destructibleBox"
visible: !root.isAssetPanel visible: !root.isAssetPanel
label: qsTr("Destructible") label: qsTr("Destructible")

View File

@ -48,6 +48,7 @@ StatusDialog {
spacing: Style.current.padding spacing: Style.current.padding
rightButtons: ObjectModel { rightButtons: ObjectModel {
StatusButton { StatusButton {
objectName: "cancelButton"
text: qsTr("Cancel") text: qsTr("Cancel")
type: StatusBaseButton.Type.Danger type: StatusBaseButton.Type.Danger
onClicked: { onClicked: {
@ -56,6 +57,7 @@ StatusDialog {
} }
} }
StatusButton { StatusButton {
objectName: "signTransactionButton"
enabled: root.errorText === "" && !root.isFeeLoading enabled: root.errorText === "" && !root.isFeeLoading
icon.name: "password" icon.name: "password"
text: qsTr("Sign transaction") text: qsTr("Sign transaction")

View File

@ -426,6 +426,7 @@ SettingsContentBase {
StatusSettingsLineButton { StatusSettingsLineButton {
anchors.leftMargin: 0 anchors.leftMargin: 0
anchors.rightMargin: 0 anchors.rightMargin: 0
objectName: "manageCommunitiesOnTestnetButton"
text: qsTr("Manage communities on testnet") text: qsTr("Manage communities on testnet")
isSwitch: true isSwitch: true
switchChecked: root.advancedStore.isManageCommunityOnTestModeEnabled switchChecked: root.advancedStore.isManageCommunityOnTestModeEnabled