From: Lucas Di Pentima Date: Thu, 28 May 2020 18:05:01 +0000 (-0300) Subject: 16439: Sends the user to the newly created project/collection. X-Git-Tag: 2.1.0~28^2~6 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/a14e75ef7270c29001e8ca462b35bf58588674ed 16439: Sends the user to the newly created project/collection. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- diff --git a/src/store/workbench/workbench-actions.ts b/src/store/workbench/workbench-actions.ts index dbf795b6..7faad1e8 100644 --- a/src/store/workbench/workbench-actions.ts +++ b/src/store/workbench/workbench-actions.ts @@ -237,7 +237,7 @@ export const createProject = (data: projectCreateActions.ProjectCreateFormDialog kind: SnackbarKind.SUCCESS })); await dispatch(loadSidePanelTreeProjects(newProject.ownerUuid)); - dispatch(reloadProjectMatchingUuid([newProject.ownerUuid])); + dispatch(navigateTo(newProject.uuid)); } }; @@ -301,7 +301,6 @@ export const loadCollection = (uuid: string) => dispatch(activateSidePanelTreeItem(SidePanelTreeCategory.TRASH)); dispatch(loadCollectionPanel(collection.uuid)); }, - }); } }); @@ -316,7 +315,7 @@ export const createCollection = (data: collectionCreateActions.CollectionCreateF kind: SnackbarKind.SUCCESS })); dispatch(updateResources([collection])); - dispatch(reloadProjectMatchingUuid([collection.ownerUuid])); + dispatch(navigateTo(collection.uuid)); } };