Poll WIP (#231):

* close button
* backend fix
This commit is contained in:
John Livingston
2024-07-04 15:34:32 +02:00
parent ffb8ac8ddc
commit 1249f0895d
6 changed files with 25 additions and 2 deletions

View File

@ -53,6 +53,11 @@ export default class MUCPollView extends CustomElement {
body: '!' + choice.choice
})
}
closePoll (ev) {
ev.preventDefault()
this.model.set('current_poll', undefined)
}
}
api.elements.define('livechat-converse-muc-poll', MUCPollView)