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

@ -162,7 +162,7 @@ let attachments = $ref<Attachment[]>([])
let quote = $ref<string | null>(null)
let visibility = $ref(Visibility.Public)
const quoteInputVisible = $ref(false)
let quoteInputVisible = $ref(false)
let visibilityMenuVisible = $ref(false)
let isLoading = $ref(false)
let errorMessage = $ref<string | null>(null)
@ -272,6 +272,7 @@ async function publish() {
content = ""
attachments = []
quote = null
quoteInputVisible = false
if (postFormContentRef) {
await nextTick()
triggerResize(postFormContentRef)