Pinafore-Web-Client-Frontend/src/routes/_components/compose/LazyComposeBox.html

17 lines
353 B
HTML
Raw Normal View History

2019-09-21 03:53:04 +02:00
{#if composeBox}
<svelte:component this={composeBox} {realm} {hidden} />
{/if}
2019-06-02 02:01:50 +02:00
<script>
import { importComposeBox } from '../../_utils/asyncModules'
export default {
2019-09-21 03:53:04 +02:00
async oncreate () {
const composeBox = await importComposeBox()
this.set({ composeBox })
},
2019-06-02 02:01:50 +02:00
data: () => ({
2019-09-21 03:53:04 +02:00
composeBox: undefined
2019-06-02 02:01:50 +02:00
})
}
</script>