lint
This commit is contained in:
parent
eb1807351c
commit
c05381e6aa
26 changed files with 81 additions and 54 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import ConfirmModal from 'src/components/confirm_modal/confirm_modal.vue'
|
||||
import Draft from 'src/components/draft/draft.vue'
|
||||
import List from 'src/components/list/list.vue'
|
||||
import ConfirmModal from 'src/components/confirm_modal/confirm_modal.vue'
|
||||
|
||||
const Drafts = {
|
||||
components: {
|
||||
|
|
@ -10,7 +10,7 @@ const Drafts = {
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
showingConfirmDialog: false
|
||||
showingConfirmDialog: false,
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
|
@ -23,12 +23,14 @@ const Drafts = {
|
|||
this.showingConfirmDialog = true
|
||||
},
|
||||
doAbandonAll() {
|
||||
this.$store.dispatch('abandonAllDrafts').then(() => this.hideConfirmDialog())
|
||||
this.$store
|
||||
.dispatch('abandonAllDrafts')
|
||||
.then(() => this.hideConfirmDialog())
|
||||
},
|
||||
hideConfirmDialog() {
|
||||
this.showingConfirmDialog = false
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
export default Drafts
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue