ignore subject line for reply preview
This commit is contained in:
parent
275fdc67a0
commit
7bf5060743
2 changed files with 8 additions and 1 deletions
|
|
@ -51,6 +51,7 @@
|
||||||
:status="customReplyTo"
|
:status="customReplyTo"
|
||||||
collapse
|
collapse
|
||||||
single-line
|
single-line
|
||||||
|
ignore-subject
|
||||||
/>
|
/>
|
||||||
<MentionLink
|
<MentionLink
|
||||||
v-else-if="customReplyTo"
|
v-else-if="customReplyTo"
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,12 @@ const StatusBody = {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
|
ignoreSubject: {
|
||||||
|
// Pretend subject line doesn't exist. Useful for chat messages
|
||||||
|
// to indicate what post reply belongs to
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
@ -76,7 +82,7 @@ const StatusBody = {
|
||||||
return this.status.summary.length > 240
|
return this.status.summary.length > 240
|
||||||
},
|
},
|
||||||
hasSubject() {
|
hasSubject() {
|
||||||
return !!this.status.summary
|
return !!this.status.summary && !this.ignoreSubject
|
||||||
},
|
},
|
||||||
// When a status has a subject and is also tall, we should only have one show more/less
|
// When a status has a subject and is also tall, we should only have one show more/less
|
||||||
// button. If the default is to collapse statuses with subjects, we just treat it like
|
// button. If the default is to collapse statuses with subjects, we just treat it like
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue