From 46047bacdfff7307049695b072b7b8e755501b06 Mon Sep 17 00:00:00 2001 From: Christos Panagiotakopoulos Date: Wed, 28 Sep 2022 14:40:20 +0200 Subject: [PATCH] fix: block posting while waiting for post to be posted (#1174) --- src/components/post/Editor.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/post/Editor.vue b/src/components/post/Editor.vue index ee30177a..f49ddcc9 100644 --- a/src/components/post/Editor.vue +++ b/src/components/post/Editor.vue @@ -794,8 +794,8 @@ export default Vue.extend({ postImages, ) try { - const cid: string = await sendRegularPost(p) this.hasPosted = true + const cid: string = await sendRegularPost(p) this.title = `` this.subtitle = `` this.input = `` @@ -803,6 +803,7 @@ export default Vue.extend({ this.$store.commit(`settings/setRecentlyPosted`, true) this.$router.push(`/post/` + cid) } catch (err: unknown) { + this.hasPosted = false this.$handleError(err) } }