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"
|
||||
collapse
|
||||
single-line
|
||||
ignore-subject
|
||||
/>
|
||||
<MentionLink
|
||||
v-else-if="customReplyTo"
|
||||
|
|
|
|||
|
|
@ -44,6 +44,12 @@ const StatusBody = {
|
|||
type: Boolean,
|
||||
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() {
|
||||
return {
|
||||
|
|
@ -76,7 +82,7 @@ const StatusBody = {
|
|||
return this.status.summary.length > 240
|
||||
},
|
||||
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
|
||||
// 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