Merge pull request #6617 from ludij/fix/6263-close-modal-after-card-delete
fix: close modal after deleting card
This commit is contained in:
@@ -140,6 +140,9 @@ export default {
|
|||||||
this.$store.dispatch('deleteCard', this.card)
|
this.$store.dispatch('deleteCard', this.card)
|
||||||
const undoCard = { ...this.card, deletedAt: 0 }
|
const undoCard = { ...this.card, deletedAt: 0 }
|
||||||
showUndo(t('deck', 'Card deleted'), () => this.$store.dispatch('cardUndoDelete', undoCard))
|
showUndo(t('deck', 'Card deleted'), () => this.$store.dispatch('cardUndoDelete', undoCard))
|
||||||
|
if (this.$router.currentRoute.name === 'card') {
|
||||||
|
this.$router.push({ name: 'board' })
|
||||||
|
}
|
||||||
},
|
},
|
||||||
changeCardDoneStatus() {
|
changeCardDoneStatus() {
|
||||||
this.$store.dispatch('changeCardDoneStatus', { ...this.card, done: !this.card.done })
|
this.$store.dispatch('changeCardDoneStatus', { ...this.card, done: !this.card.done })
|
||||||
|
|||||||
Reference in New Issue
Block a user