diff --git a/webapp/components/ContributionForm/ContributionForm.vue b/webapp/components/ContributionForm/ContributionForm.vue index c6d4b6203..ae887d1d3 100644 --- a/webapp/components/ContributionForm/ContributionForm.vue +++ b/webapp/components/ContributionForm/ContributionForm.vue @@ -263,7 +263,7 @@ export default { return [] }, }, - eventStart: { required: !this.creatEvent }, + eventStart: { required: !!this.creatEvent }, eventVenue: { required: !!this.creatEvent, min: 3, max: 100 }, eventLocationName: { required: !!this.creatEvent, min: 3, max: 100 }, }, diff --git a/webapp/components/PostTeaser/PostTeaser.vue b/webapp/components/PostTeaser/PostTeaser.vue index 183e366d3..4adc94ddc 100644 --- a/webapp/components/PostTeaser/PostTeaser.vue +++ b/webapp/components/PostTeaser/PostTeaser.vue @@ -11,6 +11,7 @@ }" :highlight="isPinned" > + @@ -188,7 +189,7 @@ export default { if (this.post.eventEnd) { const eventStart = format(new Date(this.post.eventStart), 'dd.MM.') const eventEnd = format(new Date(this.post.eventEnd), 'dd.MM.yyyy') - return eventStart + ' - ' + eventEnd + return `${eventStart} - ${eventEnd}` } else { return format(new Date(this.post.eventStart), 'dd.MM.yyyy') } diff --git a/webapp/graphql/PostMutations.js b/webapp/graphql/PostMutations.js index 01f1fb210..b4ec6731c 100644 --- a/webapp/graphql/PostMutations.js +++ b/webapp/graphql/PostMutations.js @@ -9,6 +9,7 @@ export default () => { $slug: String $content: String! $categoryIds: [ID] + $image: ImageInput $groupId: ID $postType: PostType $eventInput: _EventInput @@ -19,6 +20,7 @@ export default () => { slug: $slug content: $content categoryIds: $categoryIds + image: $image groupId: $groupId postType: $postType eventInput: $eventInput @@ -27,6 +29,12 @@ export default () => { slug title content + contentExcerpt + language + image { + url + sensitive + } disabled deleted postType diff --git a/webapp/pages/post/create.vue b/webapp/pages/post/create.vue index c282af776..c8419d08f 100644 --- a/webapp/pages/post/create.vue +++ b/webapp/pages/post/create.vue @@ -29,7 +29,7 @@ fullwidth size="x-large" v-if="creatEvent" - hover="false" + hover style="background-color: #ff000000; color: whitesmoke" > {{ $t('post.createNewEvent.title') }}