From 2a1f759e9e734868076f6454631d925744830c45 Mon Sep 17 00:00:00 2001 From: Ramires Viana <59319979+ramiresviana@users.noreply.github.com> Date: Thu, 4 Mar 2021 14:40:18 +0000 Subject: [PATCH] chore: remove prompts events --- frontend/src/components/prompts/Delete.vue | 4 +-- .../src/components/prompts/ShareDelete.vue | 24 ++++------------- frontend/src/views/files/Preview.vue | 27 ++++++++++--------- frontend/src/views/settings/Shares.vue | 18 ++++++------- 4 files changed, 31 insertions(+), 42 deletions(-) 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 @@