X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/4ad6191d53207a8b2d4c0c8a30b18119daaa5fbc..96f0b43ee4bb07e87dbeef8514a51857db069351:/services/workbench2/src/store/navigation/navigation-action.ts diff --git a/services/workbench2/src/store/navigation/navigation-action.ts b/services/workbench2/src/store/navigation/navigation-action.ts index 61720b56ab..e797dcf7ab 100644 --- a/services/workbench2/src/store/navigation/navigation-action.ts +++ b/services/workbench2/src/store/navigation/navigation-action.ts @@ -11,7 +11,7 @@ import { RootState } from "store/store"; import { ServiceRepository } from "services/services"; import { pluginConfig } from "plugins"; import { snackbarActions, SnackbarKind } from "store/snackbar/snackbar-actions"; -import { USERS_PANEL_LABEL, MY_ACCOUNT_PANEL_LABEL } from "store/breadcrumbs/breadcrumbs-actions"; +import { USERS_PANEL_LABEL, MY_ACCOUNT_PANEL_LABEL, INSTANCE_TYPES_PANEL_LABEL, VIRTUAL_MACHINES_ADMIN_PANEL_LABEL, REPOSITORIES_PANEL_LABEL } from "store/breadcrumbs/breadcrumbs-actions"; export const navigationNotAvailable = (id: string) => snackbarActions.OPEN_SNACKBAR({ @@ -40,7 +40,6 @@ export const navigateTo = (uuid: string) => async (dispatch: Dispatch, getState: return; case ResourceKind.WORKFLOW: dispatch(pushOrGoto(getNavUrl(uuid, getState().auth))); - // dispatch(openDetailsPanel(uuid)); return; } @@ -69,12 +68,24 @@ export const navigateTo = (uuid: string) => async (dispatch: Dispatch, getState: case SidePanelTreeCategory.ALL_PROCESSES: dispatch(navigateToAllProcesses); return; + case SidePanelTreeCategory.SHELL_ACCESS: + dispatch(navigateToUserVirtualMachines) + return; case USERS_PANEL_LABEL: dispatch(navigateToUsers); return; case MY_ACCOUNT_PANEL_LABEL: dispatch(navigateToMyAccount); return; + case INSTANCE_TYPES_PANEL_LABEL: + dispatch(navigateToInstanceTypes); + return; + case VIRTUAL_MACHINES_ADMIN_PANEL_LABEL: + dispatch(navigateToAdminVirtualMachines); + return; + case REPOSITORIES_PANEL_LABEL: + dispatch(navigateToRepositories); + return; } dispatch(navigationNotAvailable(uuid)); @@ -129,6 +140,8 @@ export const navigateToSshKeysAdmin = push(Routes.SSH_KEYS_ADMIN); export const navigateToSshKeysUser = push(Routes.SSH_KEYS_USER); +export const navigateToInstanceTypes = push(Routes.INSTANCE_TYPES); + export const navigateToSiteManager = push(Routes.SITE_MANAGER); export const navigateToMyAccount = push(Routes.MY_ACCOUNT);