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

add boolean properties in UserMenu component (issue 1402) #1404

Merged
merged 3 commits into from
Jan 25, 2017

Conversation

diegosanmartino
Copy link
Contributor

No description provided.

@simboss simboss added the ready label Jan 25, 2017
@coveralls
Copy link

Coverage Status

Coverage remained the same at 80.538% when pulling 5ab3ce7 on diegosanmartino:1402 into 2dc1b4f on geosolutions-it:master.

@@ -58,13 +64,25 @@ const UserMenu = React.createClass({
},
renderLoggedTools() {
let DropDown = this.props.nav ? NavDropdown : DropdownButton;
let showAccountInfoItem = null;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's better using an array of items and push each enabled item in it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

itemArray.push(<MenuItem key="passwordChange" onClick={this.props.onShowChangePassword}> <Glyphicon glyph="asterisk" /> <Message msgId="user.changePwd"/></MenuItem>);
}
if (this.props.showLogout) {
itemArray.push(<MenuItem key="divider" divider />);
Copy link
Contributor

Choose a reason for hiding this comment

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

I would push the divider only if itemArray.length > 0

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

@coveralls
Copy link

Coverage Status

Coverage remained the same at 80.538% when pulling fd243ef on diegosanmartino:1402 into 2dc1b4f on geosolutions-it:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.09%) to 80.443% when pulling 998e1a0 on diegosanmartino:1402 into 2dc1b4f on geosolutions-it:master.

@mbarto mbarto merged commit e51399d into geosolutions-it:master Jan 25, 2017
@mbarto mbarto removed the ready label Jan 25, 2017
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.

4 participants