From 7bdec1535392a848e17ed58a06fca1784a9c0c48 Mon Sep 17 00:00:00 2001 From: Khushboo Mehta Date: Wed, 4 Oct 2023 16:54:04 +0200 Subject: [PATCH] fix(@desktop/wallet): Replaced watched-only with watched address/adresses text --- ui/app/AppLayouts/Onboarding/views/ProfileFetchingView.qml | 2 +- .../Profile/controls/WalletAccountDetailsKeypairItem.qml | 2 +- ui/app/AppLayouts/Wallet/panels/WalletHeader.qml | 2 +- ui/app/AppLayouts/Wallet/views/AccountContextMenu.qml | 2 +- ui/imports/utils/Utils.qml | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ui/app/AppLayouts/Onboarding/views/ProfileFetchingView.qml b/ui/app/AppLayouts/Onboarding/views/ProfileFetchingView.qml index e007720d0e..56e9ad78ad 100644 --- a/ui/app/AppLayouts/Onboarding/views/ProfileFetchingView.qml +++ b/ui/app/AppLayouts/Onboarding/views/ProfileFetchingView.qml @@ -95,7 +95,7 @@ Item { case Constants.onboarding.profileFetching.entity.keypairs: return qsTr("Keypairs") case Constants.onboarding.profileFetching.entity.watchOnlyAccounts: - return qsTr("Watch-only accounts") + return qsTr("Watched addresses") } } } diff --git a/ui/app/AppLayouts/Profile/controls/WalletAccountDetailsKeypairItem.qml b/ui/app/AppLayouts/Profile/controls/WalletAccountDetailsKeypairItem.qml index 364a371d2d..1ca94aa6fb 100644 --- a/ui/app/AppLayouts/Profile/controls/WalletAccountDetailsKeypairItem.qml +++ b/ui/app/AppLayouts/Profile/controls/WalletAccountDetailsKeypairItem.qml @@ -14,7 +14,7 @@ StatusListItem { signal buttonClicked() - title: !!root.keyPair? root.keyPair.pairType === Constants.keypair.type.watchOnly ? qsTr("Watch only") : root.keyPair.name: "" + title: !!root.keyPair? root.keyPair.pairType === Constants.keypair.type.watchOnly ? qsTr("Watched address") : root.keyPair.name: "" titleAsideText: !!root.keyPair && root.keyPair.pairType === Constants.keypair.type.profile? Utils.getElidedCompressedPk(root.keyPair.pubKey): "" asset { width: !!root.keyPair && root.keyPair.icon? Style.current.bigPadding : 40 diff --git a/ui/app/AppLayouts/Wallet/panels/WalletHeader.qml b/ui/app/AppLayouts/Wallet/panels/WalletHeader.qml index 67570c70c7..8100a92b68 100644 --- a/ui/app/AppLayouts/Wallet/panels/WalletHeader.qml +++ b/ui/app/AppLayouts/Wallet/panels/WalletHeader.qml @@ -96,7 +96,7 @@ Item { font.weight: Font.Normal textColor: Theme.palette.baseColor1 - text: overview.includeWatchOnly ? qsTr("Hide watch-only"): qsTr("Show watch-only") + text: overview.includeWatchOnly ? qsTr("Hide watched addresses"): qsTr("Show watched addresses") icon.name: overview.includeWatchOnly ? "hide" : "show" icon.height: 16 diff --git a/ui/app/AppLayouts/Wallet/views/AccountContextMenu.qml b/ui/app/AppLayouts/Wallet/views/AccountContextMenu.qml index fcc07f2acb..ba57a1fd5e 100644 --- a/ui/app/AppLayouts/Wallet/views/AccountContextMenu.qml +++ b/ui/app/AppLayouts/Wallet/views/AccountContextMenu.qml @@ -65,7 +65,7 @@ StatusMenu { StatusAction { objectName: "AccountMenu-AddWatchOnlyAccountAction-%1".arg(root.uniqueIdentifier) - text: qsTr("Add watch-only account") + text: qsTr("Add watched address") enabled: !root.account icon.name: "show" onTriggered: { diff --git a/ui/imports/utils/Utils.qml b/ui/imports/utils/Utils.qml index 8d0b05160d..c9e9c8a0b9 100644 --- a/ui/imports/utils/Utils.qml +++ b/ui/imports/utils/Utils.qml @@ -655,9 +655,9 @@ QtObject { case Constants.appTranslatableConstants.loginAccountsListLostKeycard: return qsTr("Lost Keycard") case Constants.appTranslatableConstants.addAccountLabelNewWatchOnlyAccount: - return qsTr("New watch-only account") + return qsTr("New watched address") case Constants.appTranslatableConstants.addAccountLabelWatchOnlyAccount: - return qsTr("Watch-only account") + return qsTr("Watched address") case Constants.appTranslatableConstants.addAccountLabelExisting: return qsTr("Existing") case Constants.appTranslatableConstants.addAccountLabelImportNew: @@ -665,7 +665,7 @@ QtObject { case Constants.appTranslatableConstants.addAccountLabelOptionAddNewMasterKey: return qsTr("Add new master key") case Constants.appTranslatableConstants.addAccountLabelOptionAddWatchOnlyAcc: - return qsTr("Add watch-only account") + return qsTr("Add watched address") } // special handling because on an index attached to the constant