dynamic load dialogmodal
This commit is contained in:
parent
3aca1ce6c0
commit
2d762c9ea3
2 changed files with 6 additions and 5 deletions
|
|
@ -1,5 +1,4 @@
|
||||||
import DialogModal from 'src/components/dialog_modal/dialog_modal.vue'
|
import { defineAsyncComponent } from 'vue'
|
||||||
|
|
||||||
import { useMergedConfigStore } from 'src/stores/merged_config.js'
|
import { useMergedConfigStore } from 'src/stores/merged_config.js'
|
||||||
|
|
||||||
const DraftCloser = {
|
const DraftCloser = {
|
||||||
|
|
@ -9,7 +8,9 @@ const DraftCloser = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
DialogModal,
|
DialogModal: defineAsyncComponent(
|
||||||
|
() => import('src/components/dialog_modal/dialog_modal.vue'),
|
||||||
|
),
|
||||||
},
|
},
|
||||||
emits: ['save', 'discard'],
|
emits: ['save', 'discard'],
|
||||||
computed: {
|
computed: {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<teleport to="#modal">
|
<teleport to="#modal">
|
||||||
<dialog-modal
|
<DialogModal
|
||||||
v-if="showing"
|
v-if="showing"
|
||||||
v-body-scroll-lock="true"
|
v-body-scroll-lock="true"
|
||||||
class="confirm-modal"
|
class="confirm-modal"
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
{{ $t('post_status.close_confirm_continue_composing_button') }}
|
{{ $t('post_status.close_confirm_continue_composing_button') }}
|
||||||
</button>
|
</button>
|
||||||
</template>
|
</template>
|
||||||
</dialog-modal>
|
</DialogModal>
|
||||||
</teleport>
|
</teleport>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue