fix remove all drafts not deleting all drafts (lol)

This commit is contained in:
Henry Jameson 2026-05-12 20:29:45 +03:00
commit eb1807351c
3 changed files with 13 additions and 11 deletions

View file

@ -23,12 +23,7 @@ const Drafts = {
this.showingConfirmDialog = true
},
doAbandonAll() {
this.drafts.forEach((draft) => {
this.$store.dispatch('abandonDraft', { id: draft.id }).then(() => {
this.hideConfirmDialog()
})
})
this.hideConfirmDialog()
this.$store.dispatch('abandonAllDrafts').then(() => this.hideConfirmDialog())
},
hideConfirmDialog() {
this.showingConfirmDialog = false