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