We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f6df55d + be783d2 commit 8f77cceCopy full SHA for 8f77cce
1 file changed
src/components/cards/CardMenuEntries.vue
@@ -140,6 +140,9 @@ export default {
140
this.$store.dispatch('deleteCard', this.card)
141
const undoCard = { ...this.card, deletedAt: 0 }
142
showUndo(t('deck', 'Card deleted'), () => this.$store.dispatch('cardUndoDelete', undoCard))
143
+ if (this.$router.currentRoute.name === 'card') {
144
+ this.$router.push({ name: 'board' })
145
+ }
146
},
147
changeCardDoneStatus() {
148
this.$store.dispatch('changeCardDoneStatus', { ...this.card, done: !this.card.done })
0 commit comments