Merge branch '6044-Add-create-New-Event' of https://github.com/Ocelot-Social-Community/Ocelot-Social into 6044-Add-create-New-Event

This commit is contained in:
ogerly 2023-04-25 21:05:04 +02:00
commit ef0ee1ec0d

View File

@ -57,7 +57,7 @@
<ds-space margin-bottom="small" />
<content-viewer class="content hyphenate-text" :content="post.content" />
<!-- Eventdata -->
<ds-space v-if="post.postType[0] === 'Event'" margin-bottom="small">
<ds-space v-if="post && post.postType[0] === 'Event'" margin-bottom="small">
<ds-flex>
<ds-flex-item width="200px">Start:</ds-flex-item>
<ds-flex-item>{{ post.eventStart }}</ds-flex-item>
@ -202,7 +202,7 @@ export default {
data() {
return {
links,
post: {postType: ['Article']},
post: null,
ready: false,
title: 'loading',
showNewCommentForm: true,
@ -247,7 +247,7 @@ export default {
]
},
heading() {
if (this.post.postType[0] === 'Event') return this.$t('post.viewEvent.title')
if (this.post?.postType[0] === 'Event') return this.$t('post.viewEvent.title')
return this.$t('post.viewPost.title')
},
menuModalsData() {