Skip to content

Commit

Permalink
chore(@qml): add object names for action buttons in panels
Browse files Browse the repository at this point in the history
  • Loading branch information
anastasiyaig committed Oct 18, 2024
1 parent f48eed2 commit b0105fc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ui/app/AppLayouts/Profile/panels/ContactPanel.qml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ StatusListItem {

components: [
StatusFlatButton {
objectName: "idVerifyBtn"
visible: verificationRequestStatus === Constants.verificationStatus.verifying ||
verificationRequestStatus === Constants.verificationStatus.verified
width: visible ? implicitWidth : 0
Expand All @@ -81,6 +82,7 @@ StatusListItem {
onClicked: root.showVerificationRequest(root.publicKey)
},
StatusFlatRoundButton {
objectName: "chatBtn"
visible: showSendMessageButton
width: visible ? 32 : 0
height: visible ? 32 : 0
Expand All @@ -89,6 +91,7 @@ StatusListItem {
onClicked: root.sendMessageActionTriggered(root.publicKey)
},
StatusFlatRoundButton {
objectName: "declineBtn"
visible: showRejectContactRequestButton
width: visible ? 32 : 0
height: visible ? 32 : 0
Expand All @@ -97,6 +100,7 @@ StatusListItem {
onClicked: root.contactRequestRejected(root.publicKey)
},
StatusFlatRoundButton {
objectName: "acceptBtn"
visible: showAcceptContactRequestButton
width: visible ? 32 : 0
height: visible ? 32 : 0
Expand All @@ -105,6 +109,7 @@ StatusListItem {
onClicked: root.contactRequestAccepted(root.publicKey)
},
StatusFlatRoundButton {
objectName: "removeRejectBtn"
visible: showRemoveRejectionButton
width: visible ? 32 : 0
height: visible ? 32 : 0
Expand All @@ -128,6 +133,7 @@ StatusListItem {
}
},
StatusFlatRoundButton {
objectName: "moreBtn"
id: menuButton
width: 32
height: 32
Expand Down
3 changes: 3 additions & 0 deletions ui/imports/shared/panels/AcceptRejectOptionsButtonsPanel.qml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Row {
signal detailsClicked()

StatusFlatRoundButton {
objectName: "declineBtn"
id: declineBtn
width: 32
height: 32
Expand All @@ -33,6 +34,7 @@ Row {
}

StatusFlatRoundButton {
objectName: "acceptBtn"
id: acceptBtn
width: 32
height: 32
Expand All @@ -44,6 +46,7 @@ Row {
}

StatusFlatRoundButton {
objectName: "moreBtn"
id: menuButton
anchors.verticalCenter: parent.verticalCenter
width: 32
Expand Down

0 comments on commit b0105fc

Please sign in to comment.