fix remove all drafts not deleting all drafts (lol)
This commit is contained in:
parent
d2545c6212
commit
eb1807351c
3 changed files with 13 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue