Clean up debug statements

This commit is contained in:
tusooa 2023-03-10 21:39:15 -05:00
parent 0256ff5f63
commit 5e08c4537b
No known key found for this signature in database
GPG Key ID: 42AEC43D48433C51
3 changed files with 0 additions and 7 deletions

View File

@ -50,7 +50,6 @@ const Draft = {
this.showingConfirmDialog = true
},
doAbandon () {
console.debug('abandoning')
this.$store.dispatch('abandonDraft', { id: this.draft.id })
.then(() => {
this.hideConfirmDialog()

View File

@ -8,7 +8,6 @@ const Drafts = {
},
computed: {
drafts () {
console.debug('available drafts:', this.$store.getters.draftsArray)
return this.$store.getters.draftsArray
}
}

View File

@ -673,7 +673,6 @@ const PostStatusForm = {
},
saveDraft () {
if (!this.saveInhibited) {
console.debug('Saving status', this.newStatus)
this.$store.dispatch('addOrSaveDraft', { draft: this.newStatus })
.then(id => {
if (this.newStatus.id !== id) {
@ -686,16 +685,12 @@ const PostStatusForm = {
this.$store.dispatch('abandonDraft', { id: this.newStatus.id })
},
getDraft (statusType, refId) {
console.debug('type and ref:', [statusType, refId])
const maybeDraft = this.$store.state.drafts.drafts[this.draftId]
if (this.draftId && maybeDraft) {
console.debug('current draft:', maybeDraft)
return maybeDraft
} else {
const existingDrafts = this.$store.getters.draftsByTypeAndRefId(statusType, refId)
console.debug('existing drafts:', existingDrafts)
if (existingDrafts.length) {
return existingDrafts[0]
}