Allow confirmation on closing edit form
This commit is contained in:
parent
fb87477298
commit
8a58de5c9f
4 changed files with 10 additions and 1 deletions
|
|
@ -12,6 +12,9 @@ const EditStatusForm = {
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
requestClose () {
|
||||
this.$refs.postStatusForm.requestClose()
|
||||
},
|
||||
doEditStatus ({ status, spoilerText, sensitive, media, contentType, poll }) {
|
||||
const params = {
|
||||
store: this.$store,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
<template>
|
||||
<PostStatusForm
|
||||
ref="postStatusForm"
|
||||
v-bind="params"
|
||||
:post-handler="doEditStatus"
|
||||
:disable-polls="true"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue