peertube-plugin-livechat/conversejs/custom/plugins/tasks/templates/muc-task-list.js
2024-05-13 10:52:32 +02:00

18 lines
468 B
JavaScript

import { html } from 'lit'
import { repeat } from 'lit/directives/repeat.js'
export default function tplMucTaskList (tasklist) {
const tasks = tasklist.getTasks()
return html`
<div class="">
Tasklist: ${tasklist.get('name')}
</div>
<div class="">
${
repeat(tasks, (task) => task.get('id'), (task) => {
return html`<livechat-converse-muc-task .model=${task}></livechat-converse-muc-task>`
})
}
</div>`
}