diff --git a/web/client/components/security/UserMenu.jsx b/web/client/components/security/UserMenu.jsx
index a7eb560a3f..93316baaa6 100644
--- a/web/client/components/security/UserMenu.jsx
+++ b/web/client/components/security/UserMenu.jsx
@@ -18,6 +18,9 @@ const UserMenu = React.createClass({
// PROPS
user: React.PropTypes.object,
displayName: React.PropTypes.string,
+ showAccountInfo: React.PropTypes.bool,
+ showPasswordChange: React.PropTypes.bool,
+ showLogout: React.PropTypes.bool,
/**
* displayAttributes function to filter attributes to show
*/
@@ -40,6 +43,9 @@ const UserMenu = React.createClass({
return {
user: {
},
+ showAccountInfo: true,
+ showPasswordChange: true,
+ showLogout: true,
onLogout: () => {},
onPasswordChange: () => {},
displayName: "name",
@@ -58,13 +64,23 @@ const UserMenu = React.createClass({
},
renderLoggedTools() {
let DropDown = this.props.nav ? NavDropdown : DropdownButton;
+ let itemArray = [];
+ if (this.props.showAccountInfo) {
+ itemArray.push();
+ }
+ if (this.props.showPasswordChange) {
+ itemArray.push();
+ }
+ if (this.props.showLogout) {
+ if (itemArray.length > 0) {
+ itemArray.push();
+ }
+ itemArray.push();
+ }
return (
-
-
-
-
+ {itemArray}
);
},
renderButtonText() {