use pinned property from status directly

This commit is contained in:
taehoon 2019-04-26 15:46:40 -04:00
parent f8186bfc74
commit 32be0e15d1
5 changed files with 3 additions and 7 deletions

View File

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

View File

@ -13,7 +13,6 @@
:key="status.id"
:inlineExpanded="collapsable && isExpanded"
:statusoid="status"
:pinned="pinned"
:expandable='!isExpanded'
:focused="focused(status.id)"
:inConversation="isExpanded"

View File

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

View File

@ -13,7 +13,7 @@
</div>
</template>
<template v-else>
<div v-if="pinned" class="status-pin">
<div v-if="statusoid.pinned" class="status-pin">
<i class="fa icon-pin faint"></i>
<span class="faint">Pinned</span>
</div>

View File

@ -10,7 +10,6 @@
class="status-fadein"
:key="status.id"
:statusoid="status"
:pinned="true"
:collapsable="true"
/>
</div>