show pinned state only in the user timeline

This commit is contained in:
taehoon 2019-04-30 11:06:22 -04:00
parent 110c9d3b26
commit f68653d0dd
5 changed files with 7 additions and 3 deletions

View File

@ -41,7 +41,8 @@ const conversation = {
props: [
'statusoid',
'collapsable',
'isPage'
'isPage',
'showPinned'
],
created () {
if (this.isPage) {

View File

@ -14,6 +14,7 @@
:inlineExpanded="collapsable && isExpanded"
:statusoid="status"
:expandable='!isExpanded'
:showPinned="showPinned"
:focused="focused(status.id)"
:inConversation="isExpanded"
:highlight="getHighlight()"

View File

@ -26,7 +26,8 @@ const Status = {
'replies',
'isPreview',
'noHeading',
'inlineExpanded'
'inlineExpanded',
'showPinned'
],
data () {
return {

View File

@ -16,7 +16,7 @@
</div>
</template>
<template v-else>
<div v-if="statusoid.pinned" class="status-pin">
<div v-if="showPinned && statusoid.pinned" class="status-pin">
<i class="fa icon-pin faint"></i>
<span class="faint">{{$t('status.pinned')}}</span>
</div>

View File

@ -12,6 +12,7 @@
:key="statusId"
:statusoid="timeline.statusesObject[statusId]"
:collapsable="true"
:showPinned="true"
/>
</template>
</div>