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 {
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")

View File

@ -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")

View File

@ -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