Skip to content

Commit

Permalink
Only enable NERSC login for NERSC deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
cjh1 committed Feb 4, 2020
1 parent 11d76a5 commit 6bb21ff
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ class App extends Component {
site === 'development') {
development = true;
}
const nersc = site === 'nersc';

return (
<ConnectedRouter history={history}>
Expand Down Expand Up @@ -142,9 +143,9 @@ class App extends Component {
<route.Private path='/user/:id/molecules' component={Molecules} />
</Switch>

<authUI.LoginOptions girder={development}/>
<authUI.GirderLogin/>
<authUI.NerscLogin/>
<authUI.LoginOptions girder={development} nersc={nersc}/>
{development && <authUI.GirderLogin/>}
{nersc && <authUI.NerscLogin/>}
<authUI.OauthRedirect/>
<JupyterIntegration/>
</div>
Expand Down

0 comments on commit 6bb21ff

Please sign in to comment.