repositories-panel-init
[arvados-workbench2.git] / src / store / navigation / navigation-action.ts
index d332e0fca600dc03c6c3f9c6ebc944ac0edb7cbf..ce5996997d02a0d22036f15466c9d69a69b57c75 100644 (file)
@@ -28,9 +28,13 @@ export const navigateTo = (uuid: string) =>
             dispatch(navigateToSharedWithMe);
         } else if (uuid === SidePanelTreeCategory.WORKFLOWS) {
             dispatch(navigateToWorkflows);
+        } else if (uuid === SidePanelTreeCategory.TRASH) {
+            dispatch(navigateToTrash);
         }
     };
 
+export const navigateToRoot = push(Routes.ROOT);
+
 export const navigateToFavorites = push(Routes.FAVORITES);
 
 export const navigateToTrash = push(Routes.TRASH);
@@ -53,3 +57,9 @@ export const navigateToRootProject = (dispatch: Dispatch, getState: () => RootSt
 };
 
 export const navigateToSharedWithMe = push(Routes.SHARED_WITH_ME);
+
+export const navigateToRunProcess = push(Routes.RUN_PROCESS);
+
+export const navigateToSearchResults = push(Routes.SEARCH_RESULTS);
+
+export const navigateToRepositories = push(Routes.REPOSITORIES);