[ARVADOS-WORKBENCH2] updated: 1.1.4-532-g1121d0d

Git user git at public.curoverse.com
Mon Aug 6 09:06:08 EDT 2018


Summary of changes:
 src/views/project-panel/project-panel.tsx | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

       via  1121d0dbc1e26350b1063f110d9e90ccdd0f91e8 (commit)
      from  b1af5d719929e196113468164aed5b5d9e141450 (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 1121d0dbc1e26350b1063f110d9e90ccdd0f91e8
Author: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>
Date:   Mon Aug 6 15:05:51 2018 +0200

    restoring using currentId
    
    Feature #13905
    
    Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>

diff --git a/src/views/project-panel/project-panel.tsx b/src/views/project-panel/project-panel.tsx
index 63a57bb..0cd75ca 100644
--- a/src/views/project-panel/project-panel.tsx
+++ b/src/views/project-panel/project-panel.tsx
@@ -129,7 +129,6 @@ export const PROJECT_PANEL_ID = "projectPanel";
 
 interface ProjectPanelDataProps {
     currentItemId: string;
-    isSidePanelOpen: boolean;
 }
 
 interface ProjectPanelActionProps {
@@ -145,7 +144,7 @@ type ProjectPanelProps = ProjectPanelDataProps & ProjectPanelActionProps & Dispa
     & WithStyles<CssRules> & RouteComponentProps<{ id: string }>;
 
 export const ProjectPanel = withStyles(styles)(
-    connect((state: RootState) => ({ currentItemId: state.projects.currentItemId, isSidePanelOpen: state.sidePanel[0].open }))(
+    connect((state: RootState) => ({ currentItemId: state.projects.currentItemId }))(
         class extends React.Component<ProjectPanelProps> {
             render() {
                 const { classes } = this.props;
@@ -186,7 +185,7 @@ export const ProjectPanel = withStyles(styles)(
             }
 
             componentDidMount() {
-                if (this.props.match.params.id && !this.props.isSidePanelOpen) {
+                if (this.props.match.params.id && this.props.currentItemId === '') {
                     this.props.dispatch<any>(restoreBranch(this.props.match.params.id));
                 }
             }

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list