add allowShouts mutation

This commit is contained in:
Joseph Ngugi 2019-10-31 21:22:44 +03:00
parent 9668351279
commit 044155a298
3 changed files with 13 additions and 0 deletions

View File

@ -17,6 +17,7 @@ export default function create() {
termsAndConditionsAgreedVersion: '0.0.1',
termsAndConditionsAgreedAt: '2019-08-01T10:47:19.212Z',
allowEmbedIframes: false,
allowShouts: false,
locale: 'en',
}
defaults.slug = slugify(defaults.name, { lower: true })

View File

@ -146,6 +146,17 @@ export const allowEmbedIframesMutation = () => {
`
}
export const allowShoutsMutation = () => {
return gql`
mutation($id: ID!, $allowShouts: Boolean) {
UpdateUser(id: $id, allowShouts: $allowShouts) {
id
allowShouts
}
}
`
}
export const checkSlugAvailableQuery = gql`
query($slug: String!) {
User(slug: $slug) {

View File

@ -87,6 +87,7 @@ export const actions = {
contributionsCount
commentedCount
allowEmbedIframes
allowShouts
termsAndConditionsAgreedVersion
socialMedia {
id