X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f17cabd0672f80de53186d42855aacba482b4ccf..a34ed98858d0a43904715e62a09d6de118073701:/src/views/login-panel/login-panel.tsx diff --git a/src/views/login-panel/login-panel.tsx b/src/views/login-panel/login-panel.tsx index 41a17bf968..cca4027ddb 100644 --- a/src/views/login-panel/login-panel.tsx +++ b/src/views/login-panel/login-panel.tsx @@ -4,7 +4,7 @@ import * as React from 'react'; import { connect, DispatchProp } from 'react-redux'; -import { Grid, Typography, Button, Select, FormControl } from '@material-ui/core'; +import { Grid, Typography, Button, Select } from '@material-ui/core'; import { StyleRulesCallback, WithStyles, withStyles } from '@material-ui/core/styles'; import { login, authActions } from '~/store/auth/auth-action'; import { ArvadosTheme } from '~/common/custom-theme'; @@ -52,15 +52,17 @@ const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ type LoginPanelProps = DispatchProp & WithStyles & { remoteHosts: { [key: string]: string }, homeCluster: string, - uuidPrefix: string + uuidPrefix: string, + loginCluster: string }; export const LoginPanel = withStyles(styles)( connect((state: RootState) => ({ remoteHosts: state.auth.remoteHosts, homeCluster: state.auth.homeCluster, - uuidPrefix: state.auth.localCluster - }))(({ classes, dispatch, remoteHosts, homeCluster, uuidPrefix }: LoginPanelProps) => + uuidPrefix: state.auth.localCluster, + loginCluster: state.auth.loginCluster + }))(({ classes, dispatch, remoteHosts, homeCluster, uuidPrefix, loginCluster }: LoginPanelProps) => @@ -82,7 +84,7 @@ export const LoginPanel = withStyles(styles)( Arvados Workbench uses your name and email address only for identification, and does not retrieve any other personal information from Google. - {Object.keys(remoteHosts).length > 1 && + {Object.keys(remoteHosts).length > 1 && loginCluster === "" &&