Hide quote input field after publishing post

This commit is contained in:
silverpill 2022-10-11 20:04:29 +00:00
parent 023bdb2a5f
commit c9edb92a7a

View file

@ -1,5 +1,5 @@
<template> <template>
<form class="post-form" :class="{'reply': inReplyTo}"> <form class="post-form" :class="{ 'reply': inReplyTo }">
<router-link <router-link
v-if="author" v-if="author"
class="floating-avatar" class="floating-avatar"
@ -162,7 +162,7 @@ let attachments = $ref<Attachment[]>([])
let quote = $ref<string | null>(null) let quote = $ref<string | null>(null)
let visibility = $ref(Visibility.Public) let visibility = $ref(Visibility.Public)
const quoteInputVisible = $ref(false) let quoteInputVisible = $ref(false)
let visibilityMenuVisible = $ref(false) let visibilityMenuVisible = $ref(false)
let isLoading = $ref(false) let isLoading = $ref(false)
let errorMessage = $ref<string | null>(null) let errorMessage = $ref<string | null>(null)
@ -272,6 +272,7 @@ async function publish() {
content = "" content = ""
attachments = [] attachments = []
quote = null quote = null
quoteInputVisible = false
if (postFormContentRef) { if (postFormContentRef) {
await nextTick() await nextTick()
triggerResize(postFormContentRef) triggerResize(postFormContentRef)