X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/d6d85de50096eb0053d58c5022fd4e949c830929..b1a6da4a288560a87e0e38ad2fd73fb227e3fc66:/src/store/side-panel/side-panel-action.ts?ds=sidebyside diff --git a/src/store/side-panel/side-panel-action.ts b/src/store/side-panel/side-panel-action.ts index 4fc745b1..fd08ee13 100644 --- a/src/store/side-panel/side-panel-action.ts +++ b/src/store/side-panel/side-panel-action.ts @@ -4,7 +4,7 @@ import { Dispatch } from 'redux'; import { isSidePanelTreeCategory, SidePanelTreeCategory } from '~/store/side-panel-tree/side-panel-tree-actions'; -import { navigateToFavorites, navigateToResource } from '../navigation/navigation-action'; +import { navigateToFavorites, navigateTo, navigateToTrash, navigateToSharedWithMe, navigateToWorkflows } from '../navigation/navigation-action'; import { snackbarActions } from '~/store/snackbar/snackbar-actions'; export const navigateFromSidePanel = (id: string) => @@ -12,7 +12,7 @@ export const navigateFromSidePanel = (id: string) => if (isSidePanelTreeCategory(id)) { dispatch(getSidePanelTreeCategoryAction(id)); } else { - dispatch(navigateToResource(id)); + dispatch(navigateTo(id)); } }; @@ -20,6 +20,12 @@ const getSidePanelTreeCategoryAction = (id: string) => { switch (id) { case SidePanelTreeCategory.FAVORITES: return navigateToFavorites; + case SidePanelTreeCategory.TRASH: + return navigateToTrash; + case SidePanelTreeCategory.SHARED_WITH_ME: + return navigateToSharedWithMe; + case SidePanelTreeCategory.WORKFLOWS: + return navigateToWorkflows; default: return sidePanelTreeCategoryNotAvailable(id); } @@ -29,4 +35,4 @@ const sidePanelTreeCategoryNotAvailable = (id: string) => snackbarActions.OPEN_SNACKBAR({ message: `${id} not available`, hideDuration: 3000, - }); \ No newline at end of file + });