@ -23,7 +23,7 @@ export default class MUCPollView extends CustomElement {
|
||||
|
||||
render () {
|
||||
const currentPoll = this.model?.get('current_poll')
|
||||
return tplPoll(this.model, currentPoll)
|
||||
return tplPoll(this, currentPoll)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -37,8 +37,11 @@ function _tplChoice (el, currentPoll, choice) {
|
||||
@click=${ev => {
|
||||
ev.preventDefault()
|
||||
if (currentPoll.over) { return }
|
||||
// TODO
|
||||
|
||||
console.info('User has voted for choice: ', choice)
|
||||
el.model.sendMessage({
|
||||
body: '!' + choice.choice
|
||||
})
|
||||
}}
|
||||
>
|
||||
${i18nChoiceN}
|
||||
|
Reference in New Issue
Block a user