logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/
commit: 2edf5fc9f6e7975c727bfa25b733b5f15953adf2
parent b6f1178ea3936a9cc6dea7af24f8be8822ba8b6a
Author: tusooa <tusooa@kazv.moe>
Date:   Fri, 10 Mar 2023 21:39:15 -0500

Clean up debug statements

Diffstat:

Msrc/components/draft/draft.js1-
Msrc/components/drafts/drafts.js1-
Msrc/components/post_status_form/post_status_form.js5-----
3 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/src/components/draft/draft.js b/src/components/draft/draft.js @@ -50,7 +50,6 @@ const Draft = { this.showingConfirmDialog = true }, doAbandon () { - console.debug('abandoning') this.$store.dispatch('abandonDraft', { id: this.draft.id }) .then(() => { this.hideConfirmDialog() diff --git a/src/components/drafts/drafts.js b/src/components/drafts/drafts.js @@ -8,7 +8,6 @@ const Drafts = { }, computed: { drafts () { - console.debug('available drafts:', this.$store.getters.draftsArray) return this.$store.getters.draftsArray } } diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js @@ -707,7 +707,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) { @@ -720,16 +719,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] }