mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
teasr
This commit is contained in:
parent
04d642a4da
commit
affc392b10
@ -11,6 +11,8 @@
|
|||||||
}"
|
}"
|
||||||
:highlight="isPinned"
|
:highlight="isPinned"
|
||||||
>
|
>
|
||||||
|
ss
|
||||||
|
|
||||||
<template v-if="post.image" #heroImage>
|
<template v-if="post.image" #heroImage>
|
||||||
<img :src="post.image | proxyApiUrl" class="image" />
|
<img :src="post.image | proxyApiUrl" class="image" />
|
||||||
</template>
|
</template>
|
||||||
@ -19,7 +21,7 @@
|
|||||||
<user-teaser :user="post.author" :group="post.group" :date-time="post.createdAt" />
|
<user-teaser :user="post.author" :group="post.group" :date-time="post.createdAt" />
|
||||||
<hc-ribbon
|
<hc-ribbon
|
||||||
:class="[isPinned ? '--pinned' : '', post.image ? 'post-ribbon-w-img' : 'post-ribbon']"
|
:class="[isPinned ? '--pinned' : '', post.image ? 'post-ribbon-w-img' : 'post-ribbon']"
|
||||||
:text="isPinned ? $t('post.pinned') : $t('post.name')"
|
:text="ribbonText"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</client-only>
|
</client-only>
|
||||||
@ -152,6 +154,12 @@ export default {
|
|||||||
isPinned() {
|
isPinned() {
|
||||||
return this.post && this.post.pinned
|
return this.post && this.post.pinned
|
||||||
},
|
},
|
||||||
|
ribbonText() {
|
||||||
|
console.log(this.post)
|
||||||
|
if (this.post.pinned) return this.$t('post.pinned')
|
||||||
|
// if (this.post.postType === "Event") return this.$t('post.event')
|
||||||
|
return this.$t('post.name')
|
||||||
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async deletePostCallback() {
|
async deletePostCallback() {
|
||||||
|
|||||||
@ -67,6 +67,7 @@ export const postFragment = gql`
|
|||||||
}
|
}
|
||||||
pinnedAt
|
pinnedAt
|
||||||
pinned
|
pinned
|
||||||
|
postType
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user