2018-04-05 03:33:17 +00:00
|
|
|
<ModalDialog
|
2018-04-08 23:56:20 +00:00
|
|
|
:id
|
2018-04-05 03:33:17 +00:00
|
|
|
:label
|
|
|
|
:title
|
|
|
|
background="var(--main-bg)"
|
|
|
|
>
|
2018-04-08 22:08:32 +00:00
|
|
|
<ComposeBox realm="dialog" size="slim" autoFocus="true" />
|
2018-03-27 07:02:55 +00:00
|
|
|
</ModalDialog>
|
|
|
|
<script>
|
|
|
|
import ModalDialog from './ModalDialog.html'
|
2018-04-08 23:56:20 +00:00
|
|
|
import ComposeBox from '../../compose/ComposeBox.html'
|
|
|
|
import { on } from '../../../_utils/eventBus'
|
|
|
|
import { show } from '../helpers/showDialog'
|
|
|
|
import { oncreate as onCreateDialog } from '../helpers/onCreateDialog'
|
|
|
|
import { close } from '../helpers/closeDialog'
|
2018-03-27 07:02:55 +00:00
|
|
|
|
|
|
|
export default {
|
2018-04-20 04:38:01 +00:00
|
|
|
oncreate () {
|
2018-04-08 22:08:32 +00:00
|
|
|
on('postedStatus', this, this.onPostedStatus)
|
2018-04-08 23:56:20 +00:00
|
|
|
onCreateDialog.call(this)
|
2018-03-27 07:02:55 +00:00
|
|
|
},
|
|
|
|
methods: {
|
2018-04-08 23:56:20 +00:00
|
|
|
show,
|
|
|
|
close,
|
2018-04-20 04:38:01 +00:00
|
|
|
onPostedStatus (realm) {
|
2018-04-08 22:08:32 +00:00
|
|
|
if (realm !== 'dialog') {
|
|
|
|
return
|
|
|
|
}
|
2018-04-08 23:56:20 +00:00
|
|
|
this.close()
|
2018-03-27 07:02:55 +00:00
|
|
|
}
|
2018-04-08 23:56:20 +00:00
|
|
|
},
|
|
|
|
components: {
|
|
|
|
ModalDialog,
|
|
|
|
ComposeBox
|
2018-03-27 07:02:55 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|