Clean up debug statements
This commit is contained in:
parent
0256ff5f63
commit
5e08c4537b
|
@ -50,7 +50,6 @@ const Draft = {
|
||||||
this.showingConfirmDialog = true
|
this.showingConfirmDialog = true
|
||||||
},
|
},
|
||||||
doAbandon () {
|
doAbandon () {
|
||||||
console.debug('abandoning')
|
|
||||||
this.$store.dispatch('abandonDraft', { id: this.draft.id })
|
this.$store.dispatch('abandonDraft', { id: this.draft.id })
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.hideConfirmDialog()
|
this.hideConfirmDialog()
|
||||||
|
|
|
@ -8,7 +8,6 @@ const Drafts = {
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
drafts () {
|
drafts () {
|
||||||
console.debug('available drafts:', this.$store.getters.draftsArray)
|
|
||||||
return this.$store.getters.draftsArray
|
return this.$store.getters.draftsArray
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -673,7 +673,6 @@ const PostStatusForm = {
|
||||||
},
|
},
|
||||||
saveDraft () {
|
saveDraft () {
|
||||||
if (!this.saveInhibited) {
|
if (!this.saveInhibited) {
|
||||||
console.debug('Saving status', this.newStatus)
|
|
||||||
this.$store.dispatch('addOrSaveDraft', { draft: this.newStatus })
|
this.$store.dispatch('addOrSaveDraft', { draft: this.newStatus })
|
||||||
.then(id => {
|
.then(id => {
|
||||||
if (this.newStatus.id !== id) {
|
if (this.newStatus.id !== id) {
|
||||||
|
@ -686,16 +685,12 @@ const PostStatusForm = {
|
||||||
this.$store.dispatch('abandonDraft', { id: this.newStatus.id })
|
this.$store.dispatch('abandonDraft', { id: this.newStatus.id })
|
||||||
},
|
},
|
||||||
getDraft (statusType, refId) {
|
getDraft (statusType, refId) {
|
||||||
console.debug('type and ref:', [statusType, refId])
|
|
||||||
|
|
||||||
const maybeDraft = this.$store.state.drafts.drafts[this.draftId]
|
const maybeDraft = this.$store.state.drafts.drafts[this.draftId]
|
||||||
if (this.draftId && maybeDraft) {
|
if (this.draftId && maybeDraft) {
|
||||||
console.debug('current draft:', maybeDraft)
|
|
||||||
return maybeDraft
|
return maybeDraft
|
||||||
} else {
|
} else {
|
||||||
const existingDrafts = this.$store.getters.draftsByTypeAndRefId(statusType, refId)
|
const existingDrafts = this.$store.getters.draftsByTypeAndRefId(statusType, refId)
|
||||||
|
|
||||||
console.debug('existing drafts:', existingDrafts)
|
|
||||||
if (existingDrafts.length) {
|
if (existingDrafts.length) {
|
||||||
return existingDrafts[0]
|
return existingDrafts[0]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue