mentions open modal compose box

This commit is contained in:
Nolan Lawson 2018-04-07 00:21:00 -07:00
parent b8d93a5d96
commit e7b1b2ba31
1 changed files with 5 additions and 4 deletions

View File

@ -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('/')
}
}
}