X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/949cc1476c08322eb97a0ff809bcff036cee9a79..23199ed951991534b1c582dce5b609f758f50a68:/src/routes/route-change-handlers.ts diff --git a/src/routes/route-change-handlers.ts b/src/routes/route-change-handlers.ts index 2811f95a..b43e84bb 100644 --- a/src/routes/route-change-handlers.ts +++ b/src/routes/route-change-handlers.ts @@ -23,7 +23,7 @@ const handleLocationChange = (store: RootStore) => ({ pathname }: Location) => { const projectMatch = Routes.matchProjectRoute(pathname); const collectionMatch = Routes.matchCollectionRoute(pathname); const favoriteMatch = Routes.matchFavoritesRoute(pathname); - const publicFavoritesMatch = Routes.matchPublicFavorites(pathname); + const publicFavoritesMatch = Routes.matchPublicFavoritesRoute(pathname); const trashMatch = Routes.matchTrashRoute(pathname); const processMatch = Routes.matchProcessRoute(pathname); const processLogMatch = Routes.matchProcessLogRoute(pathname); @@ -41,10 +41,12 @@ const handleLocationChange = (store: RootStore) => ({ pathname }: Location) => { const computeNodesMatch = Routes.matchComputeNodesRoute(pathname); const apiClientAuthorizationsMatch = Routes.matchApiClientAuthorizationsRoute(pathname); const myAccountMatch = Routes.matchMyAccountRoute(pathname); + const linkAccountMatch = Routes.matchLinkAccountRoute(pathname); const userMatch = Routes.matchUsersRoute(pathname); const groupsMatch = Routes.matchGroupsRoute(pathname); const groupDetailsMatch = Routes.matchGroupDetailsRoute(pathname); const linksMatch = Routes.matchLinksRoute(pathname); + const collectionsContentAddressMatch = Routes.matchCollectionsContentAddressRoute(pathname); store.dispatch(dialogActions.CLOSE_ALL_DIALOGS()); store.dispatch(contextMenuActions.CLOSE_CONTEXT_MENU()); @@ -94,6 +96,8 @@ const handleLocationChange = (store: RootStore) => ({ pathname }: Location) => { store.dispatch(WorkbenchActions.loadApiClientAuthorizations); } else if (myAccountMatch) { store.dispatch(WorkbenchActions.loadMyAccount); + } else if (linkAccountMatch) { + store.dispatch(WorkbenchActions.loadLinkAccount); } else if (userMatch) { store.dispatch(WorkbenchActions.loadUsers); } else if (groupsMatch) { @@ -102,5 +106,7 @@ const handleLocationChange = (store: RootStore) => ({ pathname }: Location) => { store.dispatch(WorkbenchActions.loadGroupDetailsPanel(groupDetailsMatch.params.id)); } else if (linksMatch) { store.dispatch(WorkbenchActions.loadLinks); + } else if (collectionsContentAddressMatch) { + store.dispatch(WorkbenchActions.loadCollectionContentAddress); } }; \ No newline at end of file