From 80573f436498def7edae86e161535ef378c538e7 Mon Sep 17 00:00:00 2001 From: m4ximuel <54457152+m4ximuel@users.noreply.github.com> Date: Thu, 8 Apr 2021 15:22:53 +0900 Subject: [PATCH] fix: selection list not cleared when closing deletemodal without button press bug fix: not release selected list when close dialog without close button --- src/components/Modals/ConfirmDeleteModal.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Modals/ConfirmDeleteModal.vue b/src/components/Modals/ConfirmDeleteModal.vue index 25d3500e..6d78298d 100644 --- a/src/components/Modals/ConfirmDeleteModal.vue +++ b/src/components/Modals/ConfirmDeleteModal.vue @@ -62,9 +62,11 @@ export default { return this.getTorrents().filter(t => this.selected_torrents.includes(t.hash)) } }, + beforeDestroy() { + this.$store.state.selected_torrents = [] + }, methods: { close() { - this.$store.state.selected_torrents = [] this.$store.commit('DELETE_MODAL', this.guid) }, deleteWithoutFiles() {