diff --git a/conversejs/custom/plugins/tasks/templates/muc-task.js b/conversejs/custom/plugins/tasks/templates/muc-task.js index ff8f6d3b..99a7b687 100644 --- a/conversejs/custom/plugins/tasks/templates/muc-task.js +++ b/conversejs/custom/plugins/tasks/templates/muc-task.js @@ -1,8 +1,17 @@ import { html } from 'lit' export default function tplMucTask (task) { + const done = task.get('done') return html`
- Task: ${task.get('name')} + { + task.save('done', !done) + }} + /> + ${task.get('name')}
` }