Allow confirmation on closing edit form
This commit is contained in:
parent
fb87477298
commit
8a58de5c9f
4 changed files with 10 additions and 1 deletions
|
|
@ -43,6 +43,9 @@ const EditStatusModal = {
|
|||
},
|
||||
methods: {
|
||||
closeModal () {
|
||||
this.$refs.editStatusForm.requestClose()
|
||||
},
|
||||
doCloseModal () {
|
||||
this.$store.dispatch('closeEditStatusModal')
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue