This commit is contained in:
Wolfgang Huß 2022-10-07 23:34:43 +02:00
parent 1703638dd6
commit 42f5df78e4
3 changed files with 2 additions and 12 deletions

View File

@ -168,14 +168,6 @@ export default {
} }
} }
this.loading = true this.loading = true
// Wolle: console.log('variables: ', {
// title,
// content,
// categoryIds,
// id: this.contribution.id || null,
// image,
// groupId: this.groupId,
// })
this.$apollo this.$apollo
.mutate({ .mutate({
mutation: this.contribution.id ? PostMutations().UpdatePost : PostMutations().CreatePost, mutation: this.contribution.id ? PostMutations().UpdatePost : PostMutations().CreatePost,

View File

@ -35,14 +35,14 @@ export default () => {
$title: String! $title: String!
$content: String! $content: String!
$image: ImageInput $image: ImageInput
$categoryIds: [ID] # Wolle: $groupId: ID $categoryIds: [ID]
) { ) {
UpdatePost( UpdatePost(
id: $id id: $id
title: $title title: $title
content: $content content: $content
image: $image image: $image
categoryIds: $categoryIds # Wolle: groupId: $groupId categoryIds: $categoryIds
) { ) {
id id
title title

View File

@ -26,8 +26,6 @@ export default {
}, },
data() { data() {
const { groupId = null } = this.$route.query const { groupId = null } = this.$route.query
// Wolle: console.log('groupId: ', groupId)
// Wolle: check if the user can post in this group. if not ?
return { return {
groupId, groupId,
} }