mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
Cleanup
This commit is contained in:
parent
1703638dd6
commit
42f5df78e4
@ -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,
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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,
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user