[ARVADOS-WORKBENCH2] updated: 1.1.4-292-g109103e

Git user git at public.curoverse.com
Mon Jul 16 06:57:49 EDT 2018


Summary of changes:
 src/store/project/project-action.ts                          | 2 +-
 src/views-components/dialog-create/dialog-project-create.tsx | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

       via  109103ee47da299c04ffdcabebc38bcd665555d9 (commit)
      from  9f0ec4b2faba84dad403a710ffd8d3567a4344af (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 109103ee47da299c04ffdcabebc38bcd665555d9
Author: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>
Date:   Mon Jul 16 12:57:40 2018 +0200

    handle-errors
    
    Feature #13781
    
    Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>

diff --git a/src/store/project/project-action.ts b/src/store/project/project-action.ts
index f7708eb..2d59a48 100644
--- a/src/store/project/project-action.ts
+++ b/src/store/project/project-action.ts
@@ -46,7 +46,7 @@ export const createProject = (project: Partial<ProjectResource>) =>
         return projectService
             .create(projectData)
             .then(project => dispatch(actions.CREATE_PROJECT_SUCCESS(project)))
-            .catch(() => dispatch(actions.CREATE_PROJECT_ERROR("Could not create a project")));
+            .catch((response) => dispatch(actions.CREATE_PROJECT_ERROR(response.response.data.errors)));
     };
 
 export type ProjectAction = UnionOf<typeof actions>;
diff --git a/src/views-components/dialog-create/dialog-project-create.tsx b/src/views-components/dialog-create/dialog-project-create.tsx
index 91e23be..48b8911 100644
--- a/src/views-components/dialog-create/dialog-project-create.tsx
+++ b/src/views-components/dialog-create/dialog-project-create.tsx
@@ -73,7 +73,7 @@ class DialogProjectCreate extends React.Component<ProjectCreateProps & WithStyle
                   fullWidth />} />
           </DialogContent>
           <DialogActions>
-            <Button onClick={handleClose} className={classes.button} color="primary">CANCEL</Button>
+            <Button onClick={handleClose} className={classes.button} color="primary" disabled={pending}>CANCEL</Button>
             <Button onClick={this.handleSubmit} 
               className={classes.lastButton} 
               color="primary" 

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list