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
// Wolle: console.log('variables: ', {
// title,
// content,
// categoryIds,
// id: this.contribution.id || null,
// image,
// groupId: this.groupId,
// })
this.$apollo
.mutate({
mutation: this.contribution.id ? PostMutations().UpdatePost : PostMutations().CreatePost,

View File

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

View File

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