peertube-plugin-livechat/conversejs/custom/plugins/tasks/modals/muc-task-lists.js

19 lines
568 B
JavaScript
Raw Normal View History

2024-04-30 07:21:18 +00:00
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
2024-04-30 16:30:44 +00:00
return html`<livechat-converse-muc-task-lists .model=${muc.tasklists}></livechat-converse-muc-task-lists>`
2024-04-30 07:21:18 +00:00
}
getModalTitle () {
2024-04-30 15:11:10 +00:00
// eslint-disable-next-line no-undef
return __(LOC_tasks)
2024-04-30 07:21:18 +00:00
}
}
api.elements.define('livechat-converse-muc-task-lists-modal', mucTaskListsModal)