hide reactions and replies when the message is a transaction

This commit is contained in:
Iuri Matias 2021-03-24 13:30:15 -04:00
parent 8be198f26e
commit 4e15002beb
2 changed files with 3 additions and 1 deletions

View File

@ -8,9 +8,10 @@ Rectangle {
property bool parentIsHovered: false
signal hoverChanged(bool hovered)
property int containerMargin: 2
property int contentType: 2
id: buttonsContainer
visible: buttonsContainer.parentIsHovered || isMessageActive
visible: (buttonsContainer.parentIsHovered || isMessageActive) && contentType != Constants.transactionType
width: buttonRow.width + buttonsContainer.containerMargin * 2
height: 36
radius: Style.current.radius

View File

@ -29,6 +29,7 @@ Item {
}
ChatButtons {
contentType: root.contentType
parentIsHovered: root.isHovered
onHoverChanged: root.isHovered = hovered
anchors.right: parent.right