13992-creating-a-collection-within-a-project-does-not-refresh-the-list-of-collections
authorPawel Kowalczyk <pawel.kowalczyk@contractors.roche.com>
Wed, 8 Aug 2018 14:27:09 +0000 (16:27 +0200)
committerPawel Kowalczyk <pawel.kowalczyk@contractors.roche.com>
Wed, 8 Aug 2018 14:27:09 +0000 (16:27 +0200)
Feature #13992

Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk <pawel.kowalczyk@contractors.roche.com>

src/views-components/create-collection-dialog/create-collection-dialog.tsx

index 3f8cc07c248295354281eacc6ef9b5558c4ad40e..9bb469aac16f28841ef2df15a36c7c2e040b5620 100644 (file)
@@ -11,6 +11,7 @@ import { DialogCollectionCreate } from "../dialog-create/dialog-collection-creat
 import { collectionCreateActions, createCollection } from "../../store/collections/creator/collection-creator-action";
 import { snackbarActions } from "../../store/snackbar/snackbar-actions";
 import { UploadFile } from "../../store/collections/uploader/collection-uploader-actions";
+import { projectPanelActions } from "../../store/project-panel/project-panel-action";
 
 const mapStateToProps = (state: RootState) => ({
     open: state.collections.creator.opened
@@ -35,6 +36,7 @@ const addCollection = (data: { name: string, description: string }, files: File[
                 message: "Collection has been successfully created.",
                 hideDuration: 2000
             }));
+            dispatch(projectPanelActions.REQUEST_ITEMS());
         });
     };