diff --git a/webapp/components/PostTeaser/PostTeaser.vue b/webapp/components/PostTeaser/PostTeaser.vue index 5d36958f3..9d11273f9 100644 --- a/webapp/components/PostTeaser/PostTeaser.vue +++ b/webapp/components/PostTeaser/PostTeaser.vue @@ -20,6 +20,7 @@ @@ -155,7 +156,7 @@ export default { ribbonText() { console.log(this.post) if (this.post.pinned) return this.$t('post.pinned') - if (this.post && this.post.postType === "Event") return this.$t('post.event') + if (this.post.postType[0] === "Event") return this.$t('post.event') return this.$t('post.name') }, }, diff --git a/webapp/components/Ribbon/index.vue b/webapp/components/Ribbon/index.vue index f54b456e5..b8a3ee53f 100644 --- a/webapp/components/Ribbon/index.vue +++ b/webapp/components/Ribbon/index.vue @@ -1,5 +1,5 @@ @@ -12,6 +12,10 @@ export default { type: String, default: '', }, + typ: { + type: String, + default: 'blue' + } }, } @@ -43,4 +47,11 @@ export default { } } } +.eventBg { + background-color: $color-success-active; + + &::before { + border-color: $color-success-active transparent transparent $color-success-active; + } +}