data-explorer-routing-and-admins-context-menu-for-resources
[arvados-workbench2.git] / src / store / navigation / navigation-action.ts
index f610eb5e99fd6786f8fe975888256c3e544d27d1..af7a0c037357d1104e70c62d84769f044288cfd3 100644 (file)
@@ -27,6 +27,8 @@ export const navigateTo = (uuid: string) =>
         }
         if (uuid === SidePanelTreeCategory.FAVORITES) {
             dispatch<any>(navigateToFavorites);
+        } else if (uuid === SidePanelTreeCategory.PUBLIC_FAVORITES) {
+            dispatch(navigateToPublicFavorites);
         } else if (uuid === SidePanelTreeCategory.SHARED_WITH_ME) {
             dispatch(navigateToSharedWithMe);
         } else if (uuid === SidePanelTreeCategory.WORKFLOWS) {
@@ -44,6 +46,8 @@ export const navigateToFavorites = push(Routes.FAVORITES);
 
 export const navigateToTrash = push(Routes.TRASH);
 
+export const navigateToPublicFavorites = push(Routes.PUBLIC_FAVORITES);
+
 export const navigateToWorkflows = push(Routes.WORKFLOWS);
 
 export const navigateToProject = compose(push, getProjectUrl);