X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/76522b9722369b2d99a43c64d898087ed7f8ee9a..a528db83706291c24d946f7375f4312bad438603:/src/store/side-panel/side-panel-action.ts diff --git a/src/store/side-panel/side-panel-action.ts b/src/store/side-panel/side-panel-action.ts index 2a5fdd0c2d..f5ec5efc45 100644 --- a/src/store/side-panel/side-panel-action.ts +++ b/src/store/side-panel/side-panel-action.ts @@ -4,8 +4,8 @@ import { Dispatch } from 'redux'; import { isSidePanelTreeCategory, SidePanelTreeCategory } from '~/store/side-panel-tree/side-panel-tree-actions'; -import { navigateToFavorites, navigateTo, navigateToTrash, navigateToSharedWithMe } from '../navigation/navigation-action'; -import { snackbarActions } from '~/store/snackbar/snackbar-actions'; +import { navigateToFavorites, navigateTo, navigateToTrash, navigateToSharedWithMe, navigateToWorkflows, navigateToPublicFavorites } from '~/store/navigation/navigation-action'; +import {snackbarActions, SnackbarKind} from '~/store/snackbar/snackbar-actions'; export const navigateFromSidePanel = (id: string) => (dispatch: Dispatch) => { @@ -20,10 +20,14 @@ const getSidePanelTreeCategoryAction = (id: string) => { switch (id) { case SidePanelTreeCategory.FAVORITES: return navigateToFavorites; + case SidePanelTreeCategory.PUBLIC_FAVORITES: + return navigateToPublicFavorites; case SidePanelTreeCategory.TRASH: return navigateToTrash; case SidePanelTreeCategory.SHARED_WITH_ME: return navigateToSharedWithMe; + case SidePanelTreeCategory.WORKFLOWS: + return navigateToWorkflows; default: return sidePanelTreeCategoryNotAvailable(id); } @@ -33,4 +37,5 @@ const sidePanelTreeCategoryNotAvailable = (id: string) => snackbarActions.OPEN_SNACKBAR({ message: `${id} not available`, hideDuration: 3000, + kind: SnackbarKind.ERROR });