Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collection: Change default privacy to public #511

Merged

Conversation

prabalsingh24
Copy link
Contributor

Problem

changing default privacy of a collection to public

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 60.977% when pulling c966662 on prabalsingh24:collection-change-default-privacy into c60c531 on bookbrainz:master.

Comment on lines +166 to +168
if (this.props.collection.name) {
initialPrivacy = this.state.collection.public ? 'Public' : 'Private';
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does the new condition do?
Is it to check if the collection already exists (vs a new collection)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. If we're editing the collection, then it should show the proper privacy settings and if we're creating a new collection, it should show 'Public'. This is what we want to achieve right?

@MonkeyDo MonkeyDo merged commit ea70d68 into metabrainz:master Sep 10, 2020
@MonkeyDo
Copy link
Member

Thanks for this !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants