[ARVADOS-WORKBENCH2] updated: 1.1.4-445-gb92f9eb
Git user
git at public.curoverse.com
Mon Jul 30 09:31:51 EDT 2018
Summary of changes:
.../create-collection-dialog/create-collection-dialog.tsx | 5 +++++
src/views-components/create-project-dialog/create-project-dialog.tsx | 5 +++++
2 files changed, 10 insertions(+)
via b92f9ebb833ad1a868f9cad6e6b1cf9076fe7c9f (commit)
from e4c3defe5d79926d86f49ba83cfe3125261481cb (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 b92f9ebb833ad1a868f9cad6e6b1cf9076fe7c9f
Author: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>
Date: Mon Jul 30 15:31:40 2018 +0200
added snackbars on creating projects and collections
Feature #13893
Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>
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 98b57c5..e4474a5 100644
--- a/src/views-components/create-collection-dialog/create-collection-dialog.tsx
+++ b/src/views-components/create-collection-dialog/create-collection-dialog.tsx
@@ -11,6 +11,7 @@ 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
@@ -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: "Created a new collection",
+ hideDuration: 2000
+ }));
dispatch(dataExplorerActions.REQUEST_ITEMS({ id: PROJECT_PANEL_ID }));
});
};
diff --git a/src/views-components/create-project-dialog/create-project-dialog.tsx b/src/views-components/create-project-dialog/create-project-dialog.tsx
index cf5b24f..eacb1eb 100644
--- a/src/views-components/create-project-dialog/create-project-dialog.tsx
+++ b/src/views-components/create-project-dialog/create-project-dialog.tsx
@@ -11,6 +11,7 @@ import { DialogProjectCreate } from "../dialog-create/dialog-project-create";
import { projectActions, createProject, getProjectList } from "../../store/project/project-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.projects.creator.opened
@@ -20,6 +21,10 @@ const addProject = (data: { name: string, description: string }) =>
(dispatch: Dispatch, getState: () => RootState) => {
const { ownerUuid } = getState().projects.creator;
return dispatch<any>(createProject(data)).then(() => {
+ dispatch(snackbarActions.OPEN_SNACKBAR({
+ message: "Created a new project",
+ hideDuration: 2000
+ }));
dispatch(dataExplorerActions.REQUEST_ITEMS({ id: PROJECT_PANEL_ID }));
dispatch<any>(getProjectList(ownerUuid));
});
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list