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

@ -82,6 +82,12 @@ export function tplPoll (el, currentPoll) {
return html`<div class="${currentPoll.over ? 'livechat-poll-over' : ''}">
<p class="livechat-poll-question">
${currentPoll.over
? html`<button class="livechat-poll-close" @click=${el.closePoll} title="${__('Close')}">
<converse-icon class="fa fa-times" size="1em"></converse-icon>
</button>`
: ''
}
${el.collapsed
? html`
<button @click=${el.toggle} class="livechat-poll-toggle">