From bc008ddb863def3b02afba181bab1d7a13ba92e3 Mon Sep 17 00:00:00 2001 From: ogerly Date: Tue, 25 Apr 2023 16:18:40 +0200 Subject: [PATCH] teaser event green --- webapp/components/PostTeaser/PostTeaser.vue | 3 ++- webapp/components/Ribbon/index.vue | 13 ++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) 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; + } +}