parent
4591633400
commit
1c6434630e
@ -23,7 +23,7 @@ export default class MUCPollView extends CustomElement {
|
|||||||
|
|
||||||
render () {
|
render () {
|
||||||
const currentPoll = this.model?.get('current_poll')
|
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 => {
|
@click=${ev => {
|
||||||
ev.preventDefault()
|
ev.preventDefault()
|
||||||
if (currentPoll.over) { return }
|
if (currentPoll.over) { return }
|
||||||
// TODO
|
|
||||||
console.info('User has voted for choice: ', choice)
|
console.info('User has voted for choice: ', choice)
|
||||||
|
el.model.sendMessage({
|
||||||
|
body: '!' + choice.choice
|
||||||
|
})
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
${i18nChoiceN}
|
${i18nChoiceN}
|
||||||
|
@ -571,5 +571,5 @@ poll_instructions: Complete and submit this form to create a new poll. This will
|
|||||||
poll_question: Question
|
poll_question: Question
|
||||||
poll_duration: Poll duration (in minutes)
|
poll_duration: Poll duration (in minutes)
|
||||||
poll_anonymous_results: Anonymous results
|
poll_anonymous_results: Anonymous results
|
||||||
poll_choice_n: Choice {{N}}
|
poll_choice_n: 'Choice {{N}}:'
|
||||||
poll_end: 'Poll ends at:'
|
poll_end: 'Poll ends at:'
|
||||||
|
@ -553,4 +553,4 @@ poll_instructions: Complétez et soumettez ce formulaire pour créer un nouveau
|
|||||||
poll_question: Question
|
poll_question: Question
|
||||||
poll_duration: Durée du sondage (en minutes)
|
poll_duration: Durée du sondage (en minutes)
|
||||||
poll_anonymous_results: Résultats anonymes
|
poll_anonymous_results: Résultats anonymes
|
||||||
poll_choice_n: Choix {{N}}
|
poll_choice_n: 'Choix {{N}} :'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user