small cleanup in quote code
This commit is contained in:
parent
bf9f574fa2
commit
60c3dddca3
1 changed files with 3 additions and 2 deletions
|
|
@ -378,8 +378,8 @@ const PostStatusForm = {
|
||||||
set(value) {
|
set(value) {
|
||||||
if (value) {
|
if (value) {
|
||||||
this.newStatus.quote = {}
|
this.newStatus.quote = {}
|
||||||
this.newStatus.quote.thread = value
|
this.newStatus.quote.thread = true
|
||||||
this.newStatus.quote.id = value ? this.repliedStatus.id : ''
|
this.newStatus.quote.id = this.repliedStatus.id
|
||||||
} else {
|
} else {
|
||||||
this.newStatus.quote = null
|
this.newStatus.quote = null
|
||||||
}
|
}
|
||||||
|
|
@ -959,6 +959,7 @@ const PostStatusForm = {
|
||||||
// Quote
|
// Quote
|
||||||
toggleQuoteForm() {
|
toggleQuoteForm() {
|
||||||
// This is for the "attach quote" button
|
// This is for the "attach quote" button
|
||||||
|
if (this.newStatus.quote?.thread) return
|
||||||
if (!this.hasQuote) {
|
if (!this.hasQuote) {
|
||||||
this.newStatus.quote = {}
|
this.newStatus.quote = {}
|
||||||
this.newStatus.quote.thread = false
|
this.newStatus.quote.thread = false
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue