Merge pull request #6617 from ludij/fix/6263-close-modal-after-card-delete

fix: close modal after deleting card
This commit is contained in:
grnd-alt
2024-12-19 12:33:51 +01:00
committed by GitHub

View File

@@ -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 })