[ARVADOS-WORKBENCH2] updated: 1.4.1-55-gcfeff7ff
Git user
git at public.curoverse.com
Tue Oct 22 20:38:37 UTC 2019
Summary of changes:
src/views/login-panel/login-panel.tsx | 2 +-
src/views/search-results-panel/search-results-panel-view.tsx | 11 +++++++----
2 files changed, 8 insertions(+), 5 deletions(-)
via cfeff7ff252c475975587a740e25ee419a515d3c (commit)
from 634d3b05179258468f53427356b5218d97257072 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit cfeff7ff252c475975587a740e25ee419a515d3c
Author: Peter Amstutz <pamstutz at veritasgenetics.com>
Date: Tue Oct 22 16:37:57 2019 -0400
15530: Turn Site Manager Link into Button
diff --git a/src/views/login-panel/login-panel.tsx b/src/views/login-panel/login-panel.tsx
index 16b8b0bb..a67228bc 100644
--- a/src/views/login-panel/login-panel.tsx
+++ b/src/views/login-panel/login-panel.tsx
@@ -97,7 +97,7 @@ export const LoginPanel = withStyles(styles)(
<Button variant="contained" color="primary" style={{ margin: "1em" }} className={classes.button}
onClick={() => dispatch(login(uuidPrefix, homeCluster, loginCluster, remoteHosts))}>
Log in to {uuidPrefix}
- {uuidPrefix !== homeCluster &&
+ {uuidPrefix !== homeCluster && loginCluster !== homeCluster &&
<span> with user from {homeCluster}</span>}
</Button>
</Typography>
diff --git a/src/views/search-results-panel/search-results-panel-view.tsx b/src/views/search-results-panel/search-results-panel-view.tsx
index 59119403..96f4a565 100644
--- a/src/views/search-results-panel/search-results-panel-view.tsx
+++ b/src/views/search-results-panel/search-results-panel-view.tsx
@@ -21,9 +21,9 @@ import {
import { createTree } from '~/models/tree';
import { getInitialResourceTypeFilters } from '~/store/resource-type-filters/resource-type-filters';
import { SearchResultsPanelProps } from "./search-results-panel";
-import { Link } from 'react-router-dom';
import { Routes } from '~/routes/routes';
-import { StyleRulesCallback, withStyles, WithStyles } from '@material-ui/core';
+import { Link } from 'react-router-dom';
+import { StyleRulesCallback, withStyles, WithStyles, Button } from '@material-ui/core';
import { ArvadosTheme } from '~/common/custom-theme';
export enum SearchResultsPanelColumnNames {
@@ -41,7 +41,8 @@ export type CssRules = 'siteManagerLink';
const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
siteManagerLink: {
- marginLeft: theme.spacing.unit * 2
+ marginRight: theme.spacing.unit * 2,
+ float: 'right'
}
});
@@ -125,7 +126,9 @@ export const SearchResultsPanelView = withStyles(styles, { withTheme: true })(
<div>{(props.localCluster !== homeCluster && loggedIn.length === 1) ?
<span>Searching local cluster {props.localCluster} only. To search multiple clusters, <a href={props.remoteHostsConfig[homeCluster] && props.remoteHostsConfig[homeCluster].workbench2Url}> start from your home Workbench.</a></span> :
<span>Searching clusters: {loggedIn.map((ss) => <span key={ss.clusterId}> {ss.clusterId}</span>)}</span>}
- <Link to={Routes.SITE_MANAGER} className={props.classes.siteManagerLink}>Site Manager</Link>
+ <Link to={Routes.SITE_MANAGER} >
+ <Button className={props.classes.siteManagerLink} >Site Manager</Button>
+ </Link>
</div>
}
/>;
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list