X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2f83fcd45b4b23db2bb5bb4afbe1e863ebd77ec6..cd30657803a2fe49077f58891230460c9689b874:/services/workbench2/src/views-components/main-app-bar/account-menu.tsx diff --git a/services/workbench2/src/views-components/main-app-bar/account-menu.tsx b/services/workbench2/src/views-components/main-app-bar/account-menu.tsx index 4b62cea2c6..690b4033d3 100644 --- a/services/workbench2/src/views-components/main-app-bar/account-menu.tsx +++ b/services/workbench2/src/views-components/main-app-bar/account-menu.tsx @@ -17,7 +17,7 @@ import { navigateToSiteManager, navigateToSshKeysUser, navigateToMyAccount, - navigateToLinkAccount + navigateToLinkAccount, } from 'store/navigation/navigation-action'; import { openUserVirtualMachines } from "store/virtual-machines/virtual-machines-actions"; import { pluginConfig } from 'plugins'; @@ -39,16 +39,6 @@ const mapStateToProps = (state: RootState): AccountMenuProps => ({ localCluster: state.auth.localCluster }); -const wb1URL = (route: string) => { - const r = route.replace(/^\//, ""); - if (r.match(/^(projects|collections)\//)) { - return r; - } else if (r.match(/^processes\//)) { - return r.replace(/^processes/, "container_requests"); - } - return ""; -}; - type CssRules = 'link'; const styles: StyleRulesCallback = () => ({ @@ -61,7 +51,7 @@ const styles: StyleRulesCallback = () => ({ export const AccountMenuComponent = ({ user, dispatch, currentRoute, workbenchURL, apiToken, localCluster, classes }: AccountMenuProps & DispatchProp & WithStyles) => { let accountMenuItems = <> - dispatch(openUserVirtualMachines())}>Virtual Machines + dispatch(openUserVirtualMachines())}>Shell Access dispatch(openRepositoriesPanel())}>Repositories { dispatch(getNewExtraToken(true)); @@ -71,10 +61,6 @@ export const AccountMenuComponent = dispatch(navigateToSiteManager)}>Site Manager dispatch(navigateToMyAccount)}>My account dispatch(navigateToLinkAccount)}>Link account - - - Switch to Workbench v1 ; const reduceItemsFn: (a: React.ReactElement[], @@ -97,7 +83,7 @@ export const AccountMenuComponent = dispatch(authActions.LOGOUT({ deleteLinkData: true, preservePath: false }))}> Logout - + : null; };