2024-05-23 09:42:14 +00:00
|
|
|
// SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2024-07-11 15:53:50 +00:00
|
|
|
import { api } from '@converse/headless'
|
2024-07-29 16:58:02 +00:00
|
|
|
import { MUCApp } from '../../../shared/components/muc-app.js'
|
2024-05-11 15:37:20 +00:00
|
|
|
import { tplMUCTaskApp } from '../templates/muc-task-app.js'
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Custom Element to display the Task Application.
|
|
|
|
*/
|
2024-07-29 16:58:02 +00:00
|
|
|
export default class MUCTaskApp extends MUCApp {
|
|
|
|
enableSettingName = 'livechat_task_app_restore'
|
|
|
|
sessionStorangeShowKey = 'livechat-converse-task-app-show'
|
2024-05-11 15:37:20 +00:00
|
|
|
|
|
|
|
render () {
|
|
|
|
return tplMUCTaskApp(this, this.model)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
api.elements.define('livechat-converse-muc-task-app', MUCTaskApp)
|