refs #14654-empty-trash-and-favorites
[arvados-workbench2.git] / src / routes / route-change-handlers.ts
index 03e2a38aee5deb3de1a0e0663bae503d2bfe64aa..141ae20b54e57214ec4c9fe8f40362f30c110c8c 100644 (file)
@@ -18,6 +18,7 @@ export const addRouteChangeHandlers = (history: History, store: RootStore) => {
 };
 
 const handleLocationChange = (store: RootStore) => ({ pathname }: Location) => {
+
     const rootMatch = Routes.matchRootRoute(pathname);
     const projectMatch = Routes.matchProjectRoute(pathname);
     const collectionMatch = Routes.matchCollectionRoute(pathname);
@@ -34,6 +35,7 @@ const handleLocationChange = (store: RootStore) => ({ pathname }: Location) => {
     const workflowMatch = Routes.matchWorkflowRoute(pathname);
     const sshKeysUserMatch = Routes.matchSshKeysUserRoute(pathname);
     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);
@@ -79,6 +81,8 @@ const handleLocationChange = (store: RootStore) => ({ pathname }: Location) => {
         store.dispatch(WorkbenchActions.loadSshKeys);
     } else if (sshKeysAdminMatch) {
         store.dispatch(WorkbenchActions.loadSshKeys);
+    } else if (siteManagerMatch) {
+        store.dispatch(WorkbenchActions.loadSiteManager);
     } else if (keepServicesMatch) {
         store.dispatch(WorkbenchActions.loadKeepServices);
     } else if (computeNodesMatch) {
@@ -96,4 +100,4 @@ const handleLocationChange = (store: RootStore) => ({ pathname }: Location) => {
     } else if (linksMatch) {
         store.dispatch(WorkbenchActions.loadLinks);
     }
-};
+};
\ No newline at end of file