From 410c03c4049126adf77080f37abb9b9513467ee1 Mon Sep 17 00:00:00 2001 From: Luutzen Radiosphere Date: Thu, 19 Dec 2024 01:14:54 +0100 Subject: [PATCH] fix: close modal after deleting card Signed-off-by: Luutzen Dijkstra --- src/components/cards/CardMenuEntries.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/cards/CardMenuEntries.vue b/src/components/cards/CardMenuEntries.vue index 9f52afe73..43115137f 100644 --- a/src/components/cards/CardMenuEntries.vue +++ b/src/components/cards/CardMenuEntries.vue @@ -151,6 +151,9 @@ export default { this.$store.dispatch('deleteCard', this.card) const undoCard = { ...this.card, deletedAt: 0 } showUndo(t('deck', 'Card deleted'), () => this.$store.dispatch('cardUndoDelete', undoCard)) + if (this.$router.currentRoute.name === 'card') { + this.$router.push({ name: 'board' }) + } }, changeCardDoneStatus() { this.$store.dispatch('changeCardDoneStatus', { ...this.card, done: !this.card.done })