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

@ -43,6 +43,9 @@ const EditStatusModal = {
},
methods: {
closeModal () {
this.$refs.editStatusForm.requestClose()
},
doCloseModal () {
this.$store.dispatch('closeEditStatusModal')
}
}

View file

@ -9,9 +9,11 @@
{{ $t('post_status.edit_status') }}
</div>
<EditStatusForm
ref="editStatusForm"
class="panel-body"
:params="params"
@posted="closeModal"
@posted="doCloseModal"
@can-close="doCloseModal"
/>
</div>
</Modal>