- {{ $t('post.viewPost.title') }}
+ {{ heading }}
{{ $t('post.viewPost.forGroup.title', { name: post.group.name }) }}
@@ -56,6 +56,14 @@
{{ post.title }}
+
+
+
+ Start: {{ post.eventStart }}
+ Location: {{ post.eventLocationName }}
+ Ort: {{ post.eventVenue }}
+
+
@@ -174,7 +182,7 @@ export default {
data() {
return {
links,
- post: null,
+ post: {postType: ['Article']},
ready: false,
title: 'loading',
showNewCommentForm: true,
@@ -218,6 +226,10 @@ export default {
},
]
},
+ heading() {
+ if (this.post.postType[0] === 'Event') return this.$t('post.viewEvent.title')
+ return this.$t('post.viewPost.title')
+ },
menuModalsData() {
return postMenuModalsData(
// "this.post" may not always be defined at the beginning …