fix: Inclusion of Watched addresses in Balances: Wording change

- "Include in total balance" -> "Include in balances and activity"

Fixes #14517
This commit is contained in:
Lukáš Tinkl 2024-04-26 12:14:44 +02:00 committed by Lukáš Tinkl
parent 58e5dbff27
commit 792e8d74a8
3 changed files with 20 additions and 3 deletions

View File

@ -108,12 +108,28 @@ Rectangle {
spacing: 1
model: d.relatedAccounts
delegate: WalletAccountDelegate {
id: walletAccountDelegate
width: ListView.view.width
label: keyPair.pairType !== Constants.keypair.type.watchOnly ? "" : model.account.hideFromTotalBalance ? qsTr("Excl. from total balance"): qsTr("Incl. in total balance")
account: model.account
totalCount: ListView.view.count
getNetworkShortNames: root.getNetworkShortNames
onGoToAccountView: root.goToAccountView(model.account)
RowLayout {
anchors.verticalCenter: parent.verticalCenter
anchors.right: parent.right
anchors.rightMargin: Style.current.padding + walletAccountDelegate.statusListItemComponentsSlot.width
visible: keyPair.pairType === Constants.keypair.type.watchOnly
StatusIcon {
icon: "wallet"
color: Theme.palette.baseColor1
}
StatusBaseText {
text: model.account.hideFromTotalBalance ? qsTr("Excluded") : qsTr("Included")
color: Theme.palette.baseColor1
}
}
}
}
}

View File

@ -229,7 +229,7 @@ ColumnLayout {
StatusListItem {
Layout.fillWidth: true
title: qsTr("Include in total balance")
title: qsTr("Include in total balances and activity")
objectName: "includeTotalBalanceListItem"
visible: d.watchOnlyAccount
color: Theme.palette.transparent

View File

@ -47,7 +47,8 @@ StatusMenu {
StatusAction {
objectName: "AccountMenu-HideFromTotalBalance-%1".arg(root.uniqueIdentifier)
enabled: !!root.account && root.account.walletType === Constants.watchWalletType
text: !!root.account ? root.account.hideFromTotalBalance ? qsTr("Include in total balance"): qsTr("Exclude from total balance"): ""
text: !!root.account ? root.account.hideFromTotalBalance ? qsTr("Include in balances and activity")
: qsTr("Exclude from balances and activity") : ""
icon.name: !!root.account ? root.account.hideFromTotalBalance ? "show" : "hide": ""
onTriggered: root.hideFromTotalBalanceClicked(root.account.address, !root.account.hideFromTotalBalance)
}