show pinned state only in the user timeline
This commit is contained in:
parent
110c9d3b26
commit
f68653d0dd
5 changed files with 7 additions and 3 deletions
|
@ -41,7 +41,8 @@ const conversation = {
|
|||
props: [
|
||||
'statusoid',
|
||||
'collapsable',
|
||||
'isPage'
|
||||
'isPage',
|
||||
'showPinned'
|
||||
],
|
||||
created () {
|
||||
if (this.isPage) {
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
:inlineExpanded="collapsable && isExpanded"
|
||||
:statusoid="status"
|
||||
:expandable='!isExpanded'
|
||||
:showPinned="showPinned"
|
||||
:focused="focused(status.id)"
|
||||
:inConversation="isExpanded"
|
||||
:highlight="getHighlight()"
|
||||
|
|
|
@ -26,7 +26,8 @@ const Status = {
|
|||
'replies',
|
||||
'isPreview',
|
||||
'noHeading',
|
||||
'inlineExpanded'
|
||||
'inlineExpanded',
|
||||
'showPinned'
|
||||
],
|
||||
data () {
|
||||
return {
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
:key="statusId"
|
||||
:statusoid="timeline.statusesObject[statusId]"
|
||||
:collapsable="true"
|
||||
:showPinned="true"
|
||||
/>
|
||||
</template>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue