Allow confirmation on closing edit form

This commit is contained in:
tusooa 2023-04-06 14:25:19 -04:00
commit 8a58de5c9f
No known key found for this signature in database
GPG key ID: 42AEC43D48433C51
4 changed files with 10 additions and 1 deletions

View file

@ -12,6 +12,9 @@ const EditStatusForm = {
}
},
methods: {
requestClose () {
this.$refs.postStatusForm.requestClose()
},
doEditStatus ({ status, spoilerText, sensitive, media, contentType, poll }) {
const params = {
store: this.$store,

View file

@ -1,5 +1,6 @@
<template>
<PostStatusForm
ref="postStatusForm"
v-bind="params"
:post-handler="doEditStatus"
:disable-polls="true"