Abandon draft after all postings
This commit is contained in:
parent
ba5cad90d8
commit
e67e5ff899
3 changed files with 4 additions and 6 deletions
|
|
@ -418,6 +418,7 @@ const PostStatusForm = {
|
|||
|
||||
postHandler(postingOptions).then((data) => {
|
||||
if (!data.error) {
|
||||
this.abandonDraft()
|
||||
this.clearStatus()
|
||||
this.$emit('posted', data)
|
||||
} else {
|
||||
|
|
@ -707,6 +708,9 @@ const PostStatusForm = {
|
|||
})
|
||||
}
|
||||
},
|
||||
abandonDraft () {
|
||||
this.$store.dispatch('abandonDraft', { id: this.newStatus.id })
|
||||
},
|
||||
getDraft (statusType, refId) {
|
||||
console.debug('type and ref:', [statusType, refId])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue