forked from AkkomaGang/akkoma-fe
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: [
|
props: [
|
||||||
'statusoid',
|
'statusoid',
|
||||||
'collapsable',
|
'collapsable',
|
||||||
'isPage'
|
'isPage',
|
||||||
|
'showPinned'
|
||||||
],
|
],
|
||||||
created () {
|
created () {
|
||||||
if (this.isPage) {
|
if (this.isPage) {
|
||||||
|
|
|
@ -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()"
|
||||||
|
|
|
@ -26,7 +26,8 @@ const Status = {
|
||||||
'replies',
|
'replies',
|
||||||
'isPreview',
|
'isPreview',
|
||||||
'noHeading',
|
'noHeading',
|
||||||
'inlineExpanded'
|
'inlineExpanded',
|
||||||
|
'showPinned'
|
||||||
],
|
],
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue