X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/31e84a9315728c2f58a26bf0e9e1d2b38326fb86..5e805cf2209d3afe42699e4658d8a12e50bcd5a4:/src/routes/route-change-handlers.ts diff --git a/src/routes/route-change-handlers.ts b/src/routes/route-change-handlers.ts index 8a66e420..044a38bf 100644 --- a/src/routes/route-change-handlers.ts +++ b/src/routes/route-change-handlers.ts @@ -3,14 +3,14 @@ // SPDX-License-Identifier: AGPL-3.0 import { History, Location } from 'history'; -import { RootStore } from '~/store/store'; -import * as Routes from '~/routes/routes'; -import * as WorkbenchActions from '~/store/workbench/workbench-actions'; -import { navigateToRootProject } from '~/store/navigation/navigation-action'; -import { dialogActions } from '~/store/dialog/dialog-actions'; -import { contextMenuActions } from '~/store/context-menu/context-menu-actions'; -import { searchBarActions } from '~/store/search-bar/search-bar-actions'; -import { pluginConfig } from '~/plugins'; +import { RootStore } from 'store/store'; +import * as Routes from 'routes/routes'; +import * as WorkbenchActions from 'store/workbench/workbench-actions'; +import { navigateToRootProject } from 'store/navigation/navigation-action'; +import { dialogActions } from 'store/dialog/dialog-actions'; +import { contextMenuActions } from 'store/context-menu/context-menu-actions'; +import { searchBarActions } from 'store/search-bar/search-bar-actions'; +import { pluginConfig } from 'plugins'; export const addRouteChangeHandlers = (history: History, store: RootStore) => { const handler = handleLocationChange(store); @@ -39,7 +39,6 @@ const handleLocationChange = (store: RootStore) => ({ pathname }: Location) => { const sshKeysAdminMatch = Routes.matchSshKeysAdminRoute(pathname); const siteManagerMatch = Routes.matchSiteManagerRoute(pathname); const keepServicesMatch = Routes.matchKeepServicesRoute(pathname); - const computeNodesMatch = Routes.matchComputeNodesRoute(pathname); const apiClientAuthorizationsMatch = Routes.matchApiClientAuthorizationsRoute(pathname); const myAccountMatch = Routes.matchMyAccountRoute(pathname); const linkAccountMatch = Routes.matchLinkAccountRoute(pathname); @@ -87,7 +86,7 @@ const handleLocationChange = (store: RootStore) => ({ pathname }: Location) => { } else if (virtualMachineUserMatch) { store.dispatch(WorkbenchActions.loadVirtualMachines); } else if (virtualMachineAdminMatch) { - store.dispatch(WorkbenchActions.loadVirtualMachines); + store.dispatch(WorkbenchActions.loadVirtualMachinesAdmin); } else if (repositoryMatch) { store.dispatch(WorkbenchActions.loadRepositories); } else if (sshKeysUserMatch) { @@ -98,8 +97,6 @@ const handleLocationChange = (store: RootStore) => ({ pathname }: Location) => { store.dispatch(WorkbenchActions.loadSiteManager); } else if (keepServicesMatch) { store.dispatch(WorkbenchActions.loadKeepServices); - } else if (computeNodesMatch) { - store.dispatch(WorkbenchActions.loadComputeNodes); } else if (apiClientAuthorizationsMatch) { store.dispatch(WorkbenchActions.loadApiClientAuthorizations); } else if (myAccountMatch) {