X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/a48138fa7227595bba0db267a4c37832cba9afa2..4cad4c0d882111b0eb5576005108a62ff30b143d:/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 debede12..6fe3eee2 100644 --- a/src/views/login-panel/login-panel.tsx +++ b/src/views/login-panel/login-panel.tsx @@ -9,7 +9,6 @@ import { StyleRulesCallback, WithStyles, withStyles } from '@material-ui/core/st import { login, authActions } from '~/store/auth/auth-action'; import { ArvadosTheme } from '~/common/custom-theme'; import { RootState } from '~/store/store'; -import * as classNames from 'classnames'; type CssRules = 'root' | 'container' | 'title' | 'content' | 'content__bolder' | 'button'; @@ -24,7 +23,6 @@ const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ left: 0, bottom: 0, right: 0, - background: 'url("arvados-logo-big.png") no-repeat center center', opacity: 0.2, } }, @@ -52,37 +50,28 @@ const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ type LoginPanelProps = DispatchProp & WithStyles & { remoteHosts: { [key: string]: string }, homeCluster: string, - uuidPrefix: string + uuidPrefix: string, + loginCluster: string, + welcomePage: 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, + welcomePage: state.auth.config.clusterConfig.Workbench.WelcomePageHTML + }))(({ classes, dispatch, remoteHosts, homeCluster, uuidPrefix, loginCluster, welcomePage }: LoginPanelProps) => - - Welcome to the Arvados Workbench - - - The "Log in" button below will show you a Google sign-in page. - After you assure Google that you want to log in here with your Google account, you will be redirected back here to Arvados Workbench. - - - If you have never used Arvados Workbench before, logging in for the first time will automatically create a new account. - - - IMPORTANT: Please keep in mind to store exploratory data only but not any information used for clinical decision making. - - - 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 && loginCluster === "" && - {Object.keys(remoteHosts).length > 1 &&