hide reactions and replies when the message is a transaction
This commit is contained in:
parent
8be198f26e
commit
4e15002beb
|
@ -8,9 +8,10 @@ Rectangle {
|
||||||
property bool parentIsHovered: false
|
property bool parentIsHovered: false
|
||||||
signal hoverChanged(bool hovered)
|
signal hoverChanged(bool hovered)
|
||||||
property int containerMargin: 2
|
property int containerMargin: 2
|
||||||
|
property int contentType: 2
|
||||||
|
|
||||||
id: buttonsContainer
|
id: buttonsContainer
|
||||||
visible: buttonsContainer.parentIsHovered || isMessageActive
|
visible: (buttonsContainer.parentIsHovered || isMessageActive) && contentType != Constants.transactionType
|
||||||
width: buttonRow.width + buttonsContainer.containerMargin * 2
|
width: buttonRow.width + buttonsContainer.containerMargin * 2
|
||||||
height: 36
|
height: 36
|
||||||
radius: Style.current.radius
|
radius: Style.current.radius
|
||||||
|
|
|
@ -29,6 +29,7 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
ChatButtons {
|
ChatButtons {
|
||||||
|
contentType: root.contentType
|
||||||
parentIsHovered: root.isHovered
|
parentIsHovered: root.isHovered
|
||||||
onHoverChanged: root.isHovered = hovered
|
onHoverChanged: root.isHovered = hovered
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
|
|
Loading…
Reference in New Issue