20031: Navigate to destination project when copying/moving files to separate collections
authorStephen Smith <stephen@curii.com>
Mon, 22 May 2023 13:50:30 +0000 (09:50 -0400)
committerStephen Smith <stephen@curii.com>
Mon, 22 May 2023 13:50:30 +0000 (09:50 -0400)
Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen@curii.com>

src/store/collections/collection-partial-copy-actions.ts
src/store/collections/collection-partial-move-actions.ts

index f57a0321ce58a2ae3171386b9096be0aff822849..899f87c968459ff8a7e3c1d4ed20d8a9431a88a7 100644 (file)
@@ -197,6 +197,7 @@ export const copyCollectionPartialToSeparateCollections = ({ name, projectUuid }
                     )
                 ));
                 dispatch(updateResources(collections));
+                dispatch<any>(navigateTo(projectUuid));
 
                 dispatch(dialogActions.CLOSE_DIALOG({ id: COLLECTION_PARTIAL_COPY_TO_SEPARATE_COLLECTIONS }));
                 dispatch(snackbarActions.OPEN_SNACKBAR({
index e4fc8186a7fe8b76ede8fbe0b841ae512e6c8bba..206f8335a33948f3c24cd5e0a831fefd44fe02ca 100644 (file)
@@ -194,6 +194,7 @@ export const moveCollectionPartialToSeparateCollections = ({ name, projectUuid }
                     )
                 ));
                 dispatch(updateResources(collections));
+                dispatch<any>(navigateTo(projectUuid));
 
                 dispatch(dialogActions.CLOSE_DIALOG({ id: COLLECTION_PARTIAL_MOVE_TO_SEPARATE_COLLECTIONS }));
                 dispatch(snackbarActions.OPEN_SNACKBAR({