Task lists WIP

This commit is contained in:
John Livingston
2024-04-30 18:30:44 +02:00
parent ca026c2e10
commit 22561b4daa
13 changed files with 205 additions and 10 deletions

View File

@ -1,7 +1,17 @@
import { html } from 'lit'
import { repeat } from 'lit/directives/repeat.js'
export default function tplMucTaskList (tasklist) {
return html`<div class="">
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>`
}