Implement showing quotes
This commit is contained in:
parent
c9d07c6202
commit
1c20487494
5 changed files with 26 additions and 0 deletions
|
|
@ -401,6 +401,9 @@ const Status = {
|
|||
},
|
||||
editingAvailable () {
|
||||
return this.$store.state.instance.editingAvailable
|
||||
},
|
||||
quotedStatus () {
|
||||
return this.status.quote_id ? this.$store.state.statuses.allStatusesObject[this.status.quote_id] : undefined
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
|
|||
|
|
@ -422,4 +422,10 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
.quoted-status {
|
||||
margin-top: 0.5em;
|
||||
border: 1px solid var(--border, $fallback--border);
|
||||
border-radius: var(--attachmentRadius, $fallback--attachmentRadius);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -364,6 +364,15 @@
|
|||
@parseReady="setHeadTailLinks"
|
||||
/>
|
||||
|
||||
<article
|
||||
v-if="quotedStatus"
|
||||
class="quoted-status"
|
||||
>
|
||||
<Status
|
||||
:statusoid="quotedStatus"
|
||||
/>
|
||||
</article>
|
||||
|
||||
<div
|
||||
v-if="inConversation && !isPreview && replies && replies.length"
|
||||
class="replies"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue