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 spacing: 1
model: d.relatedAccounts model: d.relatedAccounts
delegate: WalletAccountDelegate { delegate: WalletAccountDelegate {
id: walletAccountDelegate
width: ListView.view.width 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 account: model.account
totalCount: ListView.view.count totalCount: ListView.view.count
getNetworkShortNames: root.getNetworkShortNames getNetworkShortNames: root.getNetworkShortNames
onGoToAccountView: root.goToAccountView(model.account) 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 { StatusListItem {
Layout.fillWidth: true Layout.fillWidth: true
title: qsTr("Include in total balance") title: qsTr("Include in total balances and activity")
objectName: "includeTotalBalanceListItem" objectName: "includeTotalBalanceListItem"
visible: d.watchOnlyAccount visible: d.watchOnlyAccount
color: Theme.palette.transparent color: Theme.palette.transparent

View File

@ -47,7 +47,8 @@ StatusMenu {
StatusAction { StatusAction {
objectName: "AccountMenu-HideFromTotalBalance-%1".arg(root.uniqueIdentifier) objectName: "AccountMenu-HideFromTotalBalance-%1".arg(root.uniqueIdentifier)
enabled: !!root.account && root.account.walletType === Constants.watchWalletType 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": "" icon.name: !!root.account ? root.account.hideFromTotalBalance ? "show" : "hide": ""
onTriggered: root.hideFromTotalBalanceClicked(root.account.address, !root.account.hideFromTotalBalance) onTriggered: root.hideFromTotalBalanceClicked(root.account.address, !root.account.hideFromTotalBalance)
} }