X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/46460de37ddbc61a296d3a393bce332d856664a6..6fbcbe191d8356ad2029e79ad961c983b2284afd:/src/views-components/create-collection-dialog/create-collection-dialog.tsx

diff --git a/src/views-components/create-collection-dialog/create-collection-dialog.tsx b/src/views-components/create-collection-dialog/create-collection-dialog.tsx
index 98b57c53..0ba2b22a 100644
--- a/src/views-components/create-collection-dialog/create-collection-dialog.tsx
+++ b/src/views-components/create-collection-dialog/create-collection-dialog.tsx
@@ -11,9 +11,10 @@ import { DialogCollectionCreate } from "../dialog-create/dialog-collection-creat
 import { collectionCreateActions, createCollection } from "../../store/collections/creator/collection-creator-action";
 import { dataExplorerActions } from "../../store/data-explorer/data-explorer-action";
 import { PROJECT_PANEL_ID } from "../../views/project-panel/project-panel";
+import { snackbarActions } from "../../store/snackbar/snackbar-actions";
 
 const mapStateToProps = (state: RootState) => ({
-    open: state.collectionCreation.creator.opened
+    open: state.collections.creator.opened
 });
 
 const mapDispatchToProps = (dispatch: Dispatch) => ({
@@ -31,6 +32,10 @@ const mapDispatchToProps = (dispatch: Dispatch) => ({
 const addCollection = (data: { name: string, description: string }) =>
     (dispatch: Dispatch) => {
         return dispatch<any>(createCollection(data)).then(() => {
+            dispatch(snackbarActions.OPEN_SNACKBAR({
+                message: "Collection has been successfully created.",
+                hideDuration: 2000
+            }));
             dispatch(dataExplorerActions.REQUEST_ITEMS({ id: PROJECT_PANEL_ID }));
         });
     };
