2018-04-05 05:33:17 +02:00
|
|
|
<ModalDialog
|
2018-05-02 02:05:36 +02:00
|
|
|
{id}
|
|
|
|
{label}
|
|
|
|
{title}
|
2018-04-05 05:33:17 +02:00
|
|
|
background="var(--main-bg)"
|
|
|
|
>
|
2018-04-09 00:08:32 +02:00
|
|
|
<ComposeBox realm="dialog" size="slim" autoFocus="true" />
|
2018-03-27 09:02:55 +02:00
|
|
|
</ModalDialog>
|
|
|
|
<script>
|
|
|
|
import ModalDialog from './ModalDialog.html'
|
2018-04-09 01:56:20 +02: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 09:02:55 +02:00
|
|
|
|
|
|
|
export default {
|
2018-04-20 06:38:01 +02:00
|
|
|
oncreate () {
|
2018-04-09 00:08:32 +02:00
|
|
|
on('postedStatus', this, this.onPostedStatus)
|
2018-04-09 01:56:20 +02:00
|
|
|
onCreateDialog.call(this)
|
2018-03-27 09:02:55 +02:00
|
|
|
},
|
2018-05-01 04:06:08 +02:00
|
|
|
data: () => ({
|
|
|
|
title: void 0
|
|
|
|
}),
|
2018-03-27 09:02:55 +02:00
|
|
|
methods: {
|
2018-04-09 01:56:20 +02:00
|
|
|
show,
|
|
|
|
close,
|
2018-04-20 06:38:01 +02:00
|
|
|
onPostedStatus (realm) {
|
2018-04-09 00:08:32 +02:00
|
|
|
if (realm !== 'dialog') {
|
|
|
|
return
|
|
|
|
}
|
2018-04-09 01:56:20 +02:00
|
|
|
this.close()
|
2018-03-27 09:02:55 +02:00
|
|
|
}
|
2018-04-09 01:56:20 +02:00
|
|
|
},
|
|
|
|
components: {
|
|
|
|
ModalDialog,
|
|
|
|
ComposeBox
|
2018-03-27 09:02:55 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|