Update property name to be more descriptive

- I wanted to trigger a build, since we had issues with our build server
today. I think this naming is more in the direction we want to go,
though. Maybe it could be makeShoutsPublic as @alina-beck used for the
translation keys... what do you think @kachulio
This commit is contained in:
mattwr18 2019-11-12 21:19:52 +01:00
parent 6e3bd19267
commit feb65a6c9c
6 changed files with 10 additions and 10 deletions

View File

@ -127,7 +127,7 @@ module.exports = {
type: 'boolean',
default: false,
},
allowShouts: {
showShoutsPublicly: {
type: 'boolean',
default: false,
},

View File

@ -177,7 +177,7 @@ export default {
'termsAndConditionsAgreedVersion',
'termsAndConditionsAgreedAt',
'allowEmbedIframes',
'allowShouts',
'showShoutsPublicly',
],
boolean: {
followedByCurrentUser:

View File

@ -28,7 +28,7 @@ type User {
termsAndConditionsAgreedAt: String
allowEmbedIframes: Boolean
allowShouts: Boolean
showShoutsPublicly: Boolean
locale: String
friends: [User]! @relation(name: "FRIENDS", direction: "BOTH")
friendsCount: Int! @cypher(statement: "MATCH (this)<-[: FRIENDS]->(r: User) RETURN COUNT(DISTINCT r)")
@ -171,7 +171,7 @@ type Mutation {
termsAndConditionsAgreedVersion: String
termsAndConditionsAgreedAt: String
allowEmbedIframes: Boolean
allowShouts: Boolean
showShoutsPublicly: Boolean
locale: String
): User

View File

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

View File

@ -146,12 +146,12 @@ export const allowEmbedIframesMutation = () => {
`
}
export const allowShoutsMutation = () => {
export const showShoutsPubliclyMutation = () => {
return gql`
mutation($id: ID!, $allowShouts: Boolean) {
UpdateUser(id: $id, allowShouts: $allowShouts) {
mutation($id: ID!, $showShoutsPublicly: Boolean) {
UpdateUser(id: $id, showShoutsPublicly: $showShoutsPublicly) {
id
allowShouts
showShoutsPublicly
}
}
`

View File

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