From affc392b10ceb6420223a427f63b7f461ff412ab Mon Sep 17 00:00:00 2001 From: ogerly Date: Tue, 25 Apr 2023 14:05:17 +0200 Subject: [PATCH] teasr --- webapp/components/PostTeaser/PostTeaser.vue | 10 +++++++++- webapp/graphql/Fragments.js | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/webapp/components/PostTeaser/PostTeaser.vue b/webapp/components/PostTeaser/PostTeaser.vue index 228c4c90c..9febce5f8 100644 --- a/webapp/components/PostTeaser/PostTeaser.vue +++ b/webapp/components/PostTeaser/PostTeaser.vue @@ -11,6 +11,8 @@ }" :highlight="isPinned" > + ss + @@ -19,7 +21,7 @@ @@ -152,6 +154,12 @@ export default { isPinned() { 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: { async deletePostCallback() { diff --git a/webapp/graphql/Fragments.js b/webapp/graphql/Fragments.js index 4931750b6..cdba3e342 100644 --- a/webapp/graphql/Fragments.js +++ b/webapp/graphql/Fragments.js @@ -67,6 +67,7 @@ export const postFragment = gql` } pinnedAt pinned + postType } `