Add/remove reactions.

This commit is contained in:
Black Hat
2019-07-26 17:48:17 +08:00
parent 18c42b6af6
commit 442b68558e
4 changed files with 42 additions and 3 deletions

View File

@@ -222,6 +222,8 @@ ColumnLayout {
}
ReactionDelegate {
Layout.fillWidth: true
Layout.topMargin: 0
Layout.bottomMargin: 8
Layout.leftMargin: 16

View File

@@ -3,9 +3,11 @@ import QtQuick.Controls 2.12
import QtQuick.Layouts 1.12
import Spectral.Setting 0.1
RowLayout {
Flow {
visible: reaction || false
spacing: 8
Repeater {
model: reaction
@@ -40,6 +42,8 @@ RowLayout {
return text
}
onClicked: currentRoom.toggleReaction(eventId, modelData.reaction)
}
}