fix typo in PollComponent that causes polls to not be checked correctly
This commit is contained in:
@@ -52,7 +52,7 @@ ColumnLayout {
|
|||||||
delegate: RowLayout {
|
delegate: RowLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
CheckBox {
|
CheckBox {
|
||||||
checked: root.pollHandler.answers[root.room.localember.id] ? root.pollHandler.answers[root.room.localMember.id].includes(modelData["id"]) : false
|
checked: root.pollHandler.answers[root.room.localMember.id] ? root.pollHandler.answers[root.room.localMember.id].includes(modelData["id"]) : false
|
||||||
onClicked: root.pollHandler.sendPollAnswer(root.eventId, modelData["id"])
|
onClicked: root.pollHandler.sendPollAnswer(root.eventId, modelData["id"])
|
||||||
enabled: !root.pollHandler.hasEnded
|
enabled: !root.pollHandler.hasEnded
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user