Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request #539 from Nike-Inc/fix/admin_metadata_dashboard_issue
Browse files Browse the repository at this point in the history
fix: admin metadata dashboard issue
  • Loading branch information
jharen authored May 21, 2021
2 parents 68a5e65 + 77ff181 commit be29343
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions cerberus-dashboard/src/components/Header/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ class UserBox extends Component {
this.props.dispatch(headerActions.mouseOutUsername())
}.bind(this)

this.handleMouseClickSdbSummary = function() {
this.props.dispatch(push('/admin/sdb-metadata'))
}.bind(this)

this.handleMouseClickViewToken = function() {
this.props.dispatch(modalActions.pushModal(<ViewTokenModal />))
}.bind(this)
Expand All @@ -83,8 +87,12 @@ class UserBox extends Component {
<div id='u-b-context-menu' className={this.props.displayUserContextMenu ? 'show-me-block' : 'hide-me'}
onMouseEnter={this.handleMouseClickUserName}
onMouseLeave={this.handleMouseLeaveUserMenuContext} >
{isAdmin && <div className='context-menu-button' onClick={() => {push('/admin/sdb-metadata')}}>SDB Summary</div>}
<div className='context-menu-button' onClick={this.handleMouseClickViewToken}>View Token</div>
{isAdmin && <div className='context-menu-button' onClick={
this.handleMouseClickSdbSummary
}>SDB Summary</div>}
<div className='context-menu-button' onClick={
this.handleMouseClickViewToken
}>View Token</div>
<div className='context-menu-button' onClick={this.handleMouseClickLogout}>Logout</div>
</div>
</div>
Expand Down

0 comments on commit be29343

Please sign in to comment.