diff --git a/frontend/src/components/prompts/Delete.vue b/frontend/src/components/prompts/Delete.vue index 67cbb33e..89d5fe3a 100644 --- a/frontend/src/components/prompts/Delete.vue +++ b/frontend/src/components/prompts/Delete.vue @@ -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 } diff --git a/frontend/src/components/prompts/ShareDelete.vue b/frontend/src/components/prompts/ShareDelete.vue index c927f104..3e195225 100644 --- a/frontend/src/components/prompts/ShareDelete.vue +++ b/frontend/src/components/prompts/ShareDelete.vue @@ -1,7 +1,7 @@