15064: Logging into home cluster logs into all federated clusters
[arvados.git] / src / views / login-panel / login-panel.tsx
index eac4034b43822c2395f54ebb371ae6e41766993a..41a17bf9682c1b7fb86d5436097ac24673b19693 100644 (file)
@@ -63,7 +63,7 @@ export const LoginPanel = withStyles(styles)(
     }))(({ classes, dispatch, remoteHosts, homeCluster, uuidPrefix }: LoginPanelProps) =>
         <Grid container justify="center" alignItems="center"
             className={classes.root}
-            style={{ marginTop: 56, overflowY: "auto" }}>
+            style={{ marginTop: 56, overflowY: "auto", height: "100%" }}>
             <Grid item className={classes.container}>
                 <Typography variant='h6' align="center" className={classes.title}>
                     Welcome to the Arvados Workbench
@@ -93,7 +93,7 @@ export const LoginPanel = withStyles(styles)(
 
                 <Typography component="div" align="right">
                     <Button variant="contained" color="primary" style={{ margin: "1em" }} className={classes.button}
-                        onClick={() => dispatch(login(uuidPrefix, remoteHosts[homeCluster]))}>
+                        onClick={() => dispatch(login(uuidPrefix, homeCluster, remoteHosts))}>
                         Log in to {uuidPrefix}
                         {uuidPrefix !== homeCluster &&
                             <span>&nbsp;with user from {homeCluster}</span>}