[arvados-workbench2] created: 2.6.2-1-g99cfb0bc
git repository hosting
git at public.arvados.org
Fri Jun 2 14:23:58 UTC 2023
at 99cfb0bcf2d99f8d410a7cb90e252bda9664be9e (commit)
commit 99cfb0bcf2d99f8d410a7cb90e252bda9664be9e
Author: Peter Amstutz <peter.amstutz at curii.com>
Date: Fri Jun 2 10:20:59 2023 -0400
19369: Set document title on navigation to url path
This is very simplistic, but we can make it better later.
Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz at curii.com>
diff --git a/src/routes/route-change-handlers.ts b/src/routes/route-change-handlers.ts
index eef52058..bdc1ddc0 100644
--- a/src/routes/route-change-handlers.ts
+++ b/src/routes/route-change-handlers.ts
@@ -60,6 +60,8 @@ const handleLocationChange = (store: RootStore) => ({ pathname }: Location) => {
}
}
+ document.title = `Arvados (${store.getState().auth.config.uuidPrefix}) - ${pathname.slice(1)}`;
+
if (projectMatch) {
store.dispatch(openProjectPanel(projectMatch.params.id));
} else if (collectionMatch) {
diff --git a/src/store/auth/auth-middleware.ts b/src/store/auth/auth-middleware.ts
index eb1e42b5..0d08405a 100644
--- a/src/store/auth/auth-middleware.ts
+++ b/src/store/auth/auth-middleware.ts
@@ -56,7 +56,7 @@ export const authMiddleware = (services: ServiceRepository): Middleware => store
}
},
SET_CONFIG: ({ config }) => {
- document.title = `Arvados Workbench (${config.uuidPrefix})`;
+ document.title = `Arvados (${config.uuidPrefix})`;
next(action);
},
LOGOUT: ({ deleteLinkData, preservePath }) => {
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list