X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a37c2265b5f60351bc1f50c22e74650a79110319..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 fd08ee1319..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, navigateToWorkflows } 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,6 +20,8 @@ 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: @@ -35,4 +37,5 @@ const sidePanelTreeCategoryNotAvailable = (id: string) => snackbarActions.OPEN_SNACKBAR({ message: `${id} not available`, hideDuration: 3000, + kind: SnackbarKind.ERROR });