Skip to content

Commit 8f77cce

Browse files
authored
Merge pull request #6617 from ludij/fix/6263-close-modal-after-card-delete
fix: close modal after deleting card
2 parents f6df55d + be783d2 commit 8f77cce

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/components/cards/CardMenuEntries.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ export default {
140140
this.$store.dispatch('deleteCard', this.card)
141141
const undoCard = { ...this.card, deletedAt: 0 }
142142
showUndo(t('deck', 'Card deleted'), () => this.$store.dispatch('cardUndoDelete', undoCard))
143+
if (this.$router.currentRoute.name === 'card') {
144+
this.$router.push({ name: 'board' })
145+
}
143146
},
144147
changeCardDoneStatus() {
145148
this.$store.dispatch('changeCardDoneStatus', { ...this.card, done: !this.card.done })

0 commit comments

Comments
 (0)