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:
parent
58e5dbff27
commit
792e8d74a8
|
@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue