mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-01-17 10:21:31 +00:00
show groupPinned Messages on Group Page
This commit is contained in:
parent
6be2f3ac9b
commit
66255c0be6
@ -174,6 +174,10 @@ export default {
|
||||
type: Object,
|
||||
default: () => {},
|
||||
},
|
||||
showGroupPinned: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
const { image } = this.post
|
||||
@ -205,10 +209,11 @@ export default {
|
||||
)
|
||||
},
|
||||
isPinned() {
|
||||
return this.post && (this.post.pinned || this.post.groupPinned)
|
||||
return this.post && (this.post.pinned || (this.showGroupPinned && this.post.groupPinned))
|
||||
},
|
||||
ribbonText() {
|
||||
if (this.post.pinned || this.post.groupPinned) return this.$t('post.pinned')
|
||||
if (this.post && (this.post.pinned || (this.showGroupPinned && this.post.groupPinned)))
|
||||
return this.$t('post.pinned')
|
||||
if (this.post.postType[0] === 'Event') return this.$t('post.event')
|
||||
return this.$t('post.name')
|
||||
},
|
||||
|
||||
@ -243,6 +243,7 @@
|
||||
<post-teaser
|
||||
:post="post"
|
||||
:width="{ base: '100%', md: '100%', xl: '50%' }"
|
||||
:showGroupPinned="true"
|
||||
@removePostFromList="posts = removePostFromList(post, posts)"
|
||||
@pinPost="pinPost(post, refetchPostList)"
|
||||
@unpinPost="unpinPost(post, refetchPostList)"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user