2018-04-05 03:33:17 +00:00
|
|
|
<ModalDialog
|
|
|
|
:label
|
|
|
|
:shown
|
|
|
|
:closed
|
|
|
|
:title
|
|
|
|
background="var(--main-bg)"
|
|
|
|
on:destroyDialog="destroy()"
|
|
|
|
>
|
2018-04-03 03:49:33 +00:00
|
|
|
<ComposeBox realm="dialog" size="slim" autoFocus="true" on:postedStatus="onPostedStatus()" />
|
2018-03-27 07:02:55 +00:00
|
|
|
</ModalDialog>
|
|
|
|
<script>
|
|
|
|
import ModalDialog from './ModalDialog.html'
|
|
|
|
import ComposeBox from '../compose/ComposeBox.html'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
ModalDialog,
|
|
|
|
ComposeBox
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
async show() {
|
|
|
|
this.set({shown: true})
|
|
|
|
},
|
|
|
|
onPostedStatus() {
|
|
|
|
this.set({closed: true})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|