Merge pull request #6619 from nextcloud/backport/6617/stable30

[stable30] fix: close modal after deleting card
This commit is contained in:
grnd-alt
2024-12-19 14:11:57 +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 })