Make sure the registry is loaded before registering custom elements
This commit is contained in:
parent
cd84feefff
commit
78bf07ecff
@ -1,4 +1,4 @@
|
|||||||
import "../components/message-history";
|
import "./message-history";
|
||||||
import xss from "xss/dist/xss";
|
import xss from "xss/dist/xss";
|
||||||
import { CustomElement } from './element.js';
|
import { CustomElement } from './element.js';
|
||||||
import { html } from 'lit-element';
|
import { html } from 'lit-element';
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
import { CustomElement } from './element.js';
|
import '../converse-registry';
|
||||||
import { renderBodyText } from './../templates/directives/body';
|
|
||||||
import { api } from "@converse/headless/converse-core";
|
|
||||||
import ImageModal from '../modals/image.js';
|
import ImageModal from '../modals/image.js';
|
||||||
|
import { CustomElement } from './element.js';
|
||||||
|
import { api } from "@converse/headless/converse-core";
|
||||||
|
import { renderBodyText } from './../templates/directives/body';
|
||||||
|
|
||||||
|
|
||||||
export default class MessageBody extends CustomElement {
|
export default class MessageBody extends CustomElement {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import "../components/message";
|
import "./message";
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
import tpl_new_day from "../templates//new_day.js";
|
import tpl_new_day from "../templates//new_day.js";
|
||||||
import { CustomElement } from './element.js';
|
import { CustomElement } from './element.js';
|
||||||
|
@ -1,14 +1,15 @@
|
|||||||
import "./message-body.js";
|
import './message-body.js';
|
||||||
|
import '../converse-registry';
|
||||||
import './dropdown.js';
|
import './dropdown.js';
|
||||||
import './message-actions.js';
|
import './message-actions.js';
|
||||||
import MessageVersionsModal from '../modals/message-versions.js';
|
import MessageVersionsModal from '../modals/message-versions.js';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
import filesize from "filesize";
|
import filesize from 'filesize';
|
||||||
import tpl_chat_message from '../templates/chat_message.js';
|
import tpl_chat_message from '../templates/chat_message.js';
|
||||||
import tpl_spinner from '../templates/spinner.js';
|
import tpl_spinner from '../templates/spinner.js';
|
||||||
import { CustomElement } from './element.js';
|
import { CustomElement } from './element.js';
|
||||||
import { __ } from '@converse/headless/i18n';
|
import { __ } from '@converse/headless/i18n';
|
||||||
import { _converse, api, converse } from "@converse/headless/converse-core";
|
import { _converse, api, converse } from '@converse/headless/converse-core';
|
||||||
import { html } from 'lit-element';
|
import { html } from 'lit-element';
|
||||||
import { renderAvatar } from './../templates/directives/avatar';
|
import { renderAvatar } from './../templates/directives/avatar';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user