chore(@qml): add object names for action buttons in panels

This commit is contained in:
Anastasiya Semenkevich 2024-10-18 16:57:07 +03:00 committed by Anastasiya
parent f48eed2b28
commit b0105fc30a
2 changed files with 9 additions and 0 deletions

View File

@ -70,6 +70,7 @@ StatusListItem {
components: [ components: [
StatusFlatButton { StatusFlatButton {
objectName: "idVerifyBtn"
visible: verificationRequestStatus === Constants.verificationStatus.verifying || visible: verificationRequestStatus === Constants.verificationStatus.verifying ||
verificationRequestStatus === Constants.verificationStatus.verified verificationRequestStatus === Constants.verificationStatus.verified
width: visible ? implicitWidth : 0 width: visible ? implicitWidth : 0
@ -81,6 +82,7 @@ StatusListItem {
onClicked: root.showVerificationRequest(root.publicKey) onClicked: root.showVerificationRequest(root.publicKey)
}, },
StatusFlatRoundButton { StatusFlatRoundButton {
objectName: "chatBtn"
visible: showSendMessageButton visible: showSendMessageButton
width: visible ? 32 : 0 width: visible ? 32 : 0
height: visible ? 32 : 0 height: visible ? 32 : 0
@ -89,6 +91,7 @@ StatusListItem {
onClicked: root.sendMessageActionTriggered(root.publicKey) onClicked: root.sendMessageActionTriggered(root.publicKey)
}, },
StatusFlatRoundButton { StatusFlatRoundButton {
objectName: "declineBtn"
visible: showRejectContactRequestButton visible: showRejectContactRequestButton
width: visible ? 32 : 0 width: visible ? 32 : 0
height: visible ? 32 : 0 height: visible ? 32 : 0
@ -97,6 +100,7 @@ StatusListItem {
onClicked: root.contactRequestRejected(root.publicKey) onClicked: root.contactRequestRejected(root.publicKey)
}, },
StatusFlatRoundButton { StatusFlatRoundButton {
objectName: "acceptBtn"
visible: showAcceptContactRequestButton visible: showAcceptContactRequestButton
width: visible ? 32 : 0 width: visible ? 32 : 0
height: visible ? 32 : 0 height: visible ? 32 : 0
@ -105,6 +109,7 @@ StatusListItem {
onClicked: root.contactRequestAccepted(root.publicKey) onClicked: root.contactRequestAccepted(root.publicKey)
}, },
StatusFlatRoundButton { StatusFlatRoundButton {
objectName: "removeRejectBtn"
visible: showRemoveRejectionButton visible: showRemoveRejectionButton
width: visible ? 32 : 0 width: visible ? 32 : 0
height: visible ? 32 : 0 height: visible ? 32 : 0
@ -128,6 +133,7 @@ StatusListItem {
} }
}, },
StatusFlatRoundButton { StatusFlatRoundButton {
objectName: "moreBtn"
id: menuButton id: menuButton
width: 32 width: 32
height: 32 height: 32

View File

@ -22,6 +22,7 @@ Row {
signal detailsClicked() signal detailsClicked()
StatusFlatRoundButton { StatusFlatRoundButton {
objectName: "declineBtn"
id: declineBtn id: declineBtn
width: 32 width: 32
height: 32 height: 32
@ -33,6 +34,7 @@ Row {
} }
StatusFlatRoundButton { StatusFlatRoundButton {
objectName: "acceptBtn"
id: acceptBtn id: acceptBtn
width: 32 width: 32
height: 32 height: 32
@ -44,6 +46,7 @@ Row {
} }
StatusFlatRoundButton { StatusFlatRoundButton {
objectName: "moreBtn"
id: menuButton id: menuButton
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
width: 32 width: 32