Support editing
This commit is contained in:
parent
8a7f17ac9e
commit
ba5cad90d8
6 changed files with 63 additions and 31 deletions
|
|
@ -1,10 +1,12 @@
|
|||
import PostStatusForm from 'src/components/post_status_form/post_status_form.vue'
|
||||
import EditStatusForm from 'src/components/edit_status_form/edit_status_form.vue'
|
||||
import ConfirmModal from 'src/components/confirm_modal/confirm_modal.vue'
|
||||
import StatusContent from 'src/components/status_content/status_content.vue'
|
||||
|
||||
const Draft = {
|
||||
components: {
|
||||
PostStatusForm,
|
||||
EditStatusForm,
|
||||
ConfirmModal,
|
||||
StatusContent
|
||||
},
|
||||
|
|
|
|||
|
|
@ -46,9 +46,15 @@
|
|||
</div>
|
||||
<div v-if="editing">
|
||||
<PostStatusForm
|
||||
v-if="draft.type !== 'edit'"
|
||||
v-bind="postStatusFormProps"
|
||||
@posted="handlePosted"
|
||||
/>
|
||||
<EditStatusForm
|
||||
v-else
|
||||
:params="postStatusFormProps"
|
||||
@posted="handlePosted"
|
||||
/>
|
||||
</div>
|
||||
<teleport to="#modal">
|
||||
<confirm-modal
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue