diff --git a/package.json b/package.json index 89d5faf..d2e0c7d 100644 --- a/package.json +++ b/package.json @@ -123,7 +123,8 @@ ], "ignore": [ "dist", - "routes/_utils/asyncModules.js" + "routes/_utils/asyncModules.js", + "routes/_components/dialog/asyncDialogs.js" ] }, "esm": { diff --git a/routes/_components/compose/ComposeBox.html b/routes/_components/compose/ComposeBox.html index 88533ba..b8d7d09 100644 --- a/routes/_components/compose/ComposeBox.html +++ b/routes/_components/compose/ComposeBox.html @@ -113,7 +113,7 @@ import { store } from '../../_store/store' import { slide } from 'svelte-transitions' import { postStatus, insertHandleForReply, setReplySpoiler, setReplyVisibility } from '../../_actions/compose' - import { importDialogs } from '../../_utils/asyncModules' + import { importShowComposeDialog } from '../dialog/asyncDialogs' import { classname } from '../../_utils/classname' export default { @@ -189,8 +189,8 @@ if (sticky) { // when the button is sticky, we're scrolled down the home timeline, // so we should launch a new compose dialog - let dialogs = await importDialogs() - dialogs.showComposeDialog() + let showComposeDialog = await importShowComposeDialog() + showComposeDialog() } else { // else we're actually posting a new toot this.doPostStatus() diff --git a/routes/_components/compose/ComposeToolbar.html b/routes/_components/compose/ComposeToolbar.html index 5d0b282..14a5fba 100644 --- a/routes/_components/compose/ComposeToolbar.html +++ b/routes/_components/compose/ComposeToolbar.html @@ -46,7 +46,7 @@