Skip to content

Commit

Permalink
Fix little UI bug
Browse files Browse the repository at this point in the history
  • Loading branch information
larousso committed Jun 6, 2018
1 parent 68203a4 commit ae1d6b8
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions izanami-server/javascript/src/izanami/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,6 @@ export class LoggedApp extends Component {
</div>

<div className="container-fluid">
{
userManagementEnabled &&
[
<ul key="admin-menu" className="nav navbar-nav navbar-right">
<li className="dropdown userManagement">
<a
Expand All @@ -146,20 +143,21 @@ export class LoggedApp extends Component {
<i className="fa fa-cog fa-2" aria-hidden="true"/>
</a>
<ul className="dropdown-menu">
<li>
<Link to="/users" className="" style={{cursor: 'pointer'}}>Users management</Link>
</li>
<li>
<Link to="/apikeys" className="" style={{cursor: 'pointer'}}>Api Keys management</Link>
</li>
{userManagementEnabled && [
<li>
<Link to="/users" className="" style={{cursor: 'pointer'}}>Users management</Link>
</li>,
<li>
<Link to="/apikeys" className="" style={{cursor: 'pointer'}}>Api Keys management</Link>
</li>
]
}
<li><a
href={this.props.logout} className="link-logout">{this.props.user ? this.props.user.email : ''}&nbsp;
<span className="glyphicon glyphicon-off"/></a></li>
</ul>
</li>
</ul>,
]
}
</ul>
{changeme &&
<a
data-toggle="popover"
Expand Down

0 comments on commit ae1d6b8

Please sign in to comment.