X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2508b089d2369bf57811f9f96c14c2ee22dd664f..c6aa0eb37e4d05b2a81f1528222dac32e0501db5:/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 15e008d1e8..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));