[ARVADOS-WORKBENCH2] updated: 1.2.0-363-g8fb1b7d
Git user
git at public.curoverse.com
Thu Sep 13 03:48:32 EDT 2018
Summary of changes:
src/views-components/side-panel-button/side-panel-button.tsx | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
via 8fb1b7d964d128c28ddf0208e1a488f46136d501 (commit)
from f79c7407429a38dfe3c274e886983d8e3ea0fdaa (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 8fb1b7d964d128c28ddf0208e1a488f46136d501
Author: Janicki Artur <artur.janicki at contractors.roche.com>
Date: Thu Sep 13 09:48:22 2018 +0200
change code after CR
Feature #14137
Arvados-DCO-1.1-Signed-off-by: Janicki Artur <artur.janicki at contractors.roche.com>
diff --git a/src/views-components/side-panel-button/side-panel-button.tsx b/src/views-components/side-panel-button/side-panel-button.tsx
index f0543b4..e39b378 100644
--- a/src/views-components/side-panel-button/side-panel-button.tsx
+++ b/src/views-components/side-panel-button/side-panel-button.tsx
@@ -34,7 +34,7 @@ const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
interface SidePanelDataProps {
currentItemId: string;
- showButton: boolean;
+ buttonVisible: boolean;
}
interface SidePanelState {
@@ -48,7 +48,7 @@ const transformOrigin: PopoverOrigin = {
horizontal: 45
};
-const checkButtonVisibility = ({ router }: RootState) => {
+const isButtonVisible = ({ router }: RootState) => {
const pathname = router.location ? router.location.pathname : '';
const match = matchProjectRoute(pathname);
return !!match;
@@ -57,7 +57,7 @@ const checkButtonVisibility = ({ router }: RootState) => {
export const SidePanelButton = withStyles(styles)(
connect((state: RootState) => ({
currentItemId: getProperty(PROJECT_PANEL_CURRENT_UUID)(state.properties),
- showButton: checkButtonVisibility(state)
+ buttonVisible: isButtonVisible(state)
}))(
class extends React.Component<SidePanelProps> {
@@ -66,10 +66,10 @@ export const SidePanelButton = withStyles(styles)(
};
render() {
- const { classes, showButton } = this.props;
+ const { classes, buttonVisible } = this.props;
const { anchorEl } = this.state;
return <Toolbar>
- {showButton && <Grid container>
+ {buttonVisible && <Grid container>
<Grid container item xs alignItems="center" justify="center">
<Button variant="contained" color="primary" size="small" className={classes.button}
aria-owns={anchorEl ? 'aside-menu-list' : undefined}
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list