From be783d244c93b4e9075eab69c29d4df032a0fcad 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 ce8da18c7..23a9d2fb3 100644 --- a/src/components/cards/CardMenuEntries.vue +++ b/src/components/cards/CardMenuEntries.vue @@ -140,6 +140,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 })