chore: remove prompts events

This commit is contained in:
Ramires Viana
2021-03-04 14:40:18 +00:00
parent edb9e85efd
commit 2a1f759e9e
4 changed files with 31 additions and 42 deletions

View File

@@ -26,7 +26,7 @@ export default {
name: 'delete',
computed: {
...mapGetters(['isListing', 'selectedCount']),
...mapState(['req', 'selected'])
...mapState(['req', 'selected', 'showConfirm'])
},
methods: {
...mapMutations(['closeHovers']),
@@ -38,7 +38,7 @@ export default {
await api.remove(this.$route.path)
buttons.success('delete')
this.$root.$emit('preview-deleted')
this.showConfirm()
this.closeHovers()
return
}