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

Fix #401: Show create bucket only if allowed #639

Merged
merged 3 commits into from
Oct 2, 2018

Conversation

leplatrem
Copy link
Contributor

Fix #401

@leplatrem leplatrem requested a review from Natim October 2, 2018 10:24
@leplatrem leplatrem requested a review from glasserc October 2, 2018 13:04
hideReadOnly: boolean,
search: ?string,
};

class BucketsMenu extends PureComponent<BucketsMenuProps, BucketsMenuState> {
constructor(props: BucketsMenuProps) {
super(props);
this.state = { hideReadOnly: false, search: null };
this.state = { canCreateBucket: true, hideReadOnly: false, search: null };
Copy link
Contributor

Choose a reason for hiding this comment

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

This might be a dumb question but why do we need to put it in the state?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch! I may have done too much while making Flow happy 😁

@leplatrem leplatrem merged commit 5a17adc into master Oct 2, 2018
@leplatrem leplatrem deleted the 401-hide-create-bucket branch October 2, 2018 19:37
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.

2 participants