Skip to content

Commit

Permalink
Merge pull request #6621 from nextcloud/backport/6617/stable28
Browse files Browse the repository at this point in the history
[stable28] fix: close modal after deleting card
  • Loading branch information
grnd-alt authored Dec 19, 2024
2 parents 97a1a7e + 410c03c commit d2e00d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/cards/CardMenuEntries.vue
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,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 })
Expand Down

0 comments on commit d2e00d2

Please sign in to comment.