From e7b1b2ba3128e448d6d8479f6151d6781e8fb350 Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sat, 7 Apr 2018 00:21:00 -0700 Subject: [PATCH] mentions open modal compose box --- .../_components/dialog/AccountProfileOptionsDialog.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/routes/_components/dialog/AccountProfileOptionsDialog.html b/routes/_components/dialog/AccountProfileOptionsDialog.html index eb0ef5ea..9a925a6d 100644 --- a/routes/_components/dialog/AccountProfileOptionsDialog.html +++ b/routes/_components/dialog/AccountProfileOptionsDialog.html @@ -12,7 +12,7 @@ import ModalDialog from './ModalDialog.html' import { store } from '../../_store/store' import GenericDialogList from './GenericDialogList.html' -import { goto } from 'sapper/runtime.js' +import { importDialogs } from '../../_utils/asyncModules' export default { computed: { @@ -35,13 +35,14 @@ export default { async show() { this.set({shown: true}) }, - onClick() { + async onClick() { let account = this.get('account') - this.store.setComposeData('home', { + this.store.setComposeData('dialog', { text: `@${account.acct} ` }) + let dialogs = await importDialogs() + dialogs.showComposeDialog() this.set({closed: true}) - goto('/') } } }