mentions open modal compose box
This commit is contained in:
parent
b8d93a5d96
commit
e7b1b2ba31
|
@ -12,7 +12,7 @@
|
||||||
import ModalDialog from './ModalDialog.html'
|
import ModalDialog from './ModalDialog.html'
|
||||||
import { store } from '../../_store/store'
|
import { store } from '../../_store/store'
|
||||||
import GenericDialogList from './GenericDialogList.html'
|
import GenericDialogList from './GenericDialogList.html'
|
||||||
import { goto } from 'sapper/runtime.js'
|
import { importDialogs } from '../../_utils/asyncModules'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
computed: {
|
computed: {
|
||||||
|
@ -35,13 +35,14 @@ export default {
|
||||||
async show() {
|
async show() {
|
||||||
this.set({shown: true})
|
this.set({shown: true})
|
||||||
},
|
},
|
||||||
onClick() {
|
async onClick() {
|
||||||
let account = this.get('account')
|
let account = this.get('account')
|
||||||
this.store.setComposeData('home', {
|
this.store.setComposeData('dialog', {
|
||||||
text: `@${account.acct} `
|
text: `@${account.acct} `
|
||||||
})
|
})
|
||||||
|
let dialogs = await importDialogs()
|
||||||
|
dialogs.showComposeDialog()
|
||||||
this.set({closed: true})
|
this.set({closed: true})
|
||||||
goto('/')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue