[arvados-workbench2] updated: 2.6.2-4-gdcc13bac
git repository hosting
git at public.arvados.org
Fri Jun 2 14:59:28 UTC 2023
Summary of changes:
src/routes/route-change-handlers.ts | 2 ++
src/store/auth/auth-middleware.ts | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
via dcc13bac8192a1a1075f5596d0b014441ae5b33a (commit)
from 65473dca3509b72453f430c5ce6e69fe97961d08 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit dcc13bac8192a1a1075f5596d0b014441ae5b33a
Author: Peter Amstutz <peter.amstutz at curii.com>
Date: Fri Jun 2 10:20:59 2023 -0400
Set document title on navigation to url path, refs #19369
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