From ea31d1115fb221b3f223e761562ba051440ecd78 Mon Sep 17 00:00:00 2001 From: Anastasiya Semenkevich Date: Fri, 23 Aug 2024 12:55:48 +0300 Subject: [PATCH] qml: change object name for account actions --- .../AppLayouts/Wallet/views/AccountContextMenu.qml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ui/app/AppLayouts/Wallet/views/AccountContextMenu.qml b/ui/app/AppLayouts/Wallet/views/AccountContextMenu.qml index c2b3f48c91..158e9750a2 100644 --- a/ui/app/AppLayouts/Wallet/views/AccountContextMenu.qml +++ b/ui/app/AppLayouts/Wallet/views/AccountContextMenu.qml @@ -21,7 +21,7 @@ StatusMenu { StatusSuccessAction { id: copyAddressAction - objectName: "AccountMenu-CopyAddressAction-%1".arg(root.uniqueIdentifier) + objectName: "AccountMenu-CopyAddressAction_" + root.account.name successText: qsTr("Address copied") text: qsTr("Copy address") icon.name: "copy" @@ -35,7 +35,7 @@ StatusMenu { } StatusAction { - objectName: "AccountMenu-EditAction-%1".arg(root.uniqueIdentifier) + objectName: "AccountMenu-EditAction_" + root.account.name enabled: !!root.account text: qsTr("Edit") icon.name: "pencil-outline" @@ -45,7 +45,7 @@ StatusMenu { } StatusAction { - objectName: "AccountMenu-HideFromTotalBalance-%1".arg(root.uniqueIdentifier) + objectName: "AccountMenu-HideFromTotalBalance_" + root.account.name enabled: !!root.account && root.account.walletType === Constants.watchWalletType text: !!root.account ? root.account.hideFromTotalBalance ? qsTr("Include in balances and activity") : qsTr("Exclude from balances and activity") : "" @@ -54,7 +54,7 @@ StatusMenu { } StatusAction { - objectName: "AccountMenu-DeleteAction-%1".arg(root.uniqueIdentifier) + objectName: "AccountMenu-DeleteAction_" + root.account.name enabled: !!root.account && !root.account.isWallet text: qsTr("Delete") icon.name: "info" @@ -65,7 +65,7 @@ StatusMenu { } StatusAction { - objectName: "AccountMenu-AddNewAccountAction-%1".arg(root.uniqueIdentifier) + objectName: "AccountMenu-AddNewAccountAction_" + root.account.name text: qsTr("Add new account") enabled: !root.account icon.name: "add" @@ -77,7 +77,7 @@ StatusMenu { Loader { active: !production sourceComponent: StatusAction { - objectName: "AccountMenu-AddWatchOnlyAccountAction-%1".arg(root.uniqueIdentifier) + objectName: "AccountMenu-AddWatchOnlyAccountAction_" + root.account.name text: qsTr("Add watched address") enabled: !root.account icon.name: "show"