Merge branch '13751-shared-with-me-view'
[arvados-workbench2.git] / src / store / navigation / navigation-action.ts
index 0e87769e24a57095f4e74fd578f5c46ed1358c59..c68c5398754e13c6a439af6176cf53a36def01d7 100644 (file)
@@ -24,6 +24,8 @@ export const navigateTo = (uuid: string) =>
         }
         if (uuid === SidePanelTreeCategory.FAVORITES) {
             dispatch<any>(navigateToFavorites);
+        } else if(uuid === SidePanelTreeCategory.SHARED_WITH_ME){
+            dispatch(navigateToSharedWithMe);
         }
     };
 
@@ -44,4 +46,6 @@ export const navigateToRootProject = (dispatch: Dispatch, getState: () => RootSt
     if (rootProjectUuid) {
         dispatch(navigateToProject(rootProjectUuid));
     }
-};
\ No newline at end of file
+};
+
+export const navigateToSharedWithMe = push(Routes.SHARED_WITH_ME);