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

19 lines
568 B
JavaScript

import BaseModal from '../../../../src/plugins/modal/modal.js'
import { api } from '../../../../src/headless/core.js'
import { html } from 'lit'
import { __ } from 'i18n'
export default class mucTaskListsModal extends BaseModal {
renderModal () {
const muc = this.model
return html`<livechat-converse-muc-task-lists .model=${muc.tasklists}></livechat-converse-muc-task-lists>`
}
getModalTitle () {
// eslint-disable-next-line no-undef
return __(LOC_tasks)
}
}
api.elements.define('livechat-converse-muc-task-lists-modal', mucTaskListsModal)