From b0105fc30ae0233db9d5ab5c2d0db91d0f594b54 Mon Sep 17 00:00:00 2001 From: Anastasiya Semenkevich Date: Fri, 18 Oct 2024 16:57:07 +0300 Subject: [PATCH] chore(@qml): add object names for action buttons in panels --- ui/app/AppLayouts/Profile/panels/ContactPanel.qml | 6 ++++++ .../shared/panels/AcceptRejectOptionsButtonsPanel.qml | 3 +++ 2 files changed, 9 insertions(+) diff --git a/ui/app/AppLayouts/Profile/panels/ContactPanel.qml b/ui/app/AppLayouts/Profile/panels/ContactPanel.qml index 0187f7954e..5ad6f46362 100644 --- a/ui/app/AppLayouts/Profile/panels/ContactPanel.qml +++ b/ui/app/AppLayouts/Profile/panels/ContactPanel.qml @@ -70,6 +70,7 @@ StatusListItem { components: [ StatusFlatButton { + objectName: "idVerifyBtn" visible: verificationRequestStatus === Constants.verificationStatus.verifying || verificationRequestStatus === Constants.verificationStatus.verified width: visible ? implicitWidth : 0 @@ -81,6 +82,7 @@ StatusListItem { onClicked: root.showVerificationRequest(root.publicKey) }, StatusFlatRoundButton { + objectName: "chatBtn" visible: showSendMessageButton width: visible ? 32 : 0 height: visible ? 32 : 0 @@ -89,6 +91,7 @@ StatusListItem { onClicked: root.sendMessageActionTriggered(root.publicKey) }, StatusFlatRoundButton { + objectName: "declineBtn" visible: showRejectContactRequestButton width: visible ? 32 : 0 height: visible ? 32 : 0 @@ -97,6 +100,7 @@ StatusListItem { onClicked: root.contactRequestRejected(root.publicKey) }, StatusFlatRoundButton { + objectName: "acceptBtn" visible: showAcceptContactRequestButton width: visible ? 32 : 0 height: visible ? 32 : 0 @@ -105,6 +109,7 @@ StatusListItem { onClicked: root.contactRequestAccepted(root.publicKey) }, StatusFlatRoundButton { + objectName: "removeRejectBtn" visible: showRemoveRejectionButton width: visible ? 32 : 0 height: visible ? 32 : 0 @@ -128,6 +133,7 @@ StatusListItem { } }, StatusFlatRoundButton { + objectName: "moreBtn" id: menuButton width: 32 height: 32 diff --git a/ui/imports/shared/panels/AcceptRejectOptionsButtonsPanel.qml b/ui/imports/shared/panels/AcceptRejectOptionsButtonsPanel.qml index 6278e2fe53..8d1a37f1de 100644 --- a/ui/imports/shared/panels/AcceptRejectOptionsButtonsPanel.qml +++ b/ui/imports/shared/panels/AcceptRejectOptionsButtonsPanel.qml @@ -22,6 +22,7 @@ Row { signal detailsClicked() StatusFlatRoundButton { + objectName: "declineBtn" id: declineBtn width: 32 height: 32 @@ -33,6 +34,7 @@ Row { } StatusFlatRoundButton { + objectName: "acceptBtn" id: acceptBtn width: 32 height: 32 @@ -44,6 +46,7 @@ Row { } StatusFlatRoundButton { + objectName: "moreBtn" id: menuButton anchors.verticalCenter: parent.verticalCenter width: 32