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: [ props: [
'statusoid', 'statusoid',
'collapsable', 'collapsable',
'isPage' 'isPage',
'showPinned'
], ],
created () { created () {
if (this.isPage) { if (this.isPage) {

View file

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

View file

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

View file

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

View file

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