Move chatbox template to chatview plugin folder
This commit is contained in:
parent
a8a2bb4681
commit
3ae71a45a2
@ -1,7 +1,7 @@
|
|||||||
import 'plugins/chatview/heading.js';
|
import 'plugins/chatview/heading.js';
|
||||||
import 'plugins/chatview/bottom_panel.js';
|
import 'plugins/chatview/bottom_panel.js';
|
||||||
import BaseChatView from 'shared/chat/baseview.js';
|
import BaseChatView from 'shared/chat/baseview.js';
|
||||||
import tpl_chatbox from 'templates/chatbox.js';
|
import tpl_chat from './templates/chat.js';
|
||||||
import { __ } from 'i18n';
|
import { __ } from 'i18n';
|
||||||
import { _converse, api, converse } from '@converse/headless/core';
|
import { _converse, api, converse } from '@converse/headless/core';
|
||||||
import { render } from 'lit-html';
|
import { render } from 'lit-html';
|
||||||
@ -55,7 +55,7 @@ export default class ChatView extends BaseChatView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render () {
|
render () {
|
||||||
const result = tpl_chatbox(Object.assign(
|
const result = tpl_chat(Object.assign(
|
||||||
this.model.toJSON(), { 'markScrolled': ev => this.markScrolled(ev) })
|
this.model.toJSON(), { 'markScrolled': ev => this.markScrolled(ev) })
|
||||||
);
|
);
|
||||||
render(result, this);
|
render(result, this);
|
||||||
|
Loading…
Reference in New Issue
Block a user