Hide quote input field after publishing post
This commit is contained in:
parent
023bdb2a5f
commit
c9edb92a7a
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue