[arvados] updated: 2.7.0-6100-g7889b2946c
git repository hosting
git at public.arvados.org
Fri Mar 1 20:24:08 UTC 2024
Summary of changes:
services/workbench2/src/store/breadcrumbs/breadcrumbs-actions.ts | 8 ++++++++
services/workbench2/src/store/workbench/workbench-actions.ts | 1 +
2 files changed, 9 insertions(+)
via 7889b2946c77867e3bfed76ec787bb36be67f3e2 (commit)
from 0d753912c2fa8f53f1d5c2e6251b7a25caeb3499 (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 7889b2946c77867e3bfed76ec787bb36be67f3e2
Author: Lisa Knox <lisaknox83 at gmail.com>
Date: Fri Mar 1 15:24:01 2024 -0500
21412: viewing another users home project now displays that users name Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox at curii.com>
diff --git a/services/workbench2/src/store/breadcrumbs/breadcrumbs-actions.ts b/services/workbench2/src/store/breadcrumbs/breadcrumbs-actions.ts
index 69554676e7..a374fd1a24 100644
--- a/services/workbench2/src/store/breadcrumbs/breadcrumbs-actions.ts
+++ b/services/workbench2/src/store/breadcrumbs/breadcrumbs-actions.ts
@@ -79,6 +79,14 @@ export const setSidePanelBreadcrumbs = (uuid: string) =>
uuid: SidePanelTreeCategory.PROJECTS,
icon: getSidePanelIcon(SidePanelTreeCategory.PROJECTS)
});
+ } else if (uuidKind === ResourceKind.USER) {
+ // Handle another user root project
+ const user = getResource<UserResource>(uuid)(getState().resources);
+ breadcrumbs.push({
+ label: (user as any)?.fullName || SidePanelTreeCategory.PROJECTS,
+ uuid: user?.uuid || uuid,
+ icon: getSidePanelIcon(SidePanelTreeCategory.PROJECTS)
+ });
} else if (Object.values(SidePanelTreeCategory).includes(uuid as SidePanelTreeCategory)) {
// Handle SidePanelTreeCategory root
breadcrumbs.push({
diff --git a/services/workbench2/src/store/workbench/workbench-actions.ts b/services/workbench2/src/store/workbench/workbench-actions.ts
index 42a1033dde..83c457f94d 100644
--- a/services/workbench2/src/store/workbench/workbench-actions.ts
+++ b/services/workbench2/src/store/workbench/workbench-actions.ts
@@ -247,6 +247,7 @@ export const loadProject = (uuid: string) =>
if (extractUuidKind(uuid) === ResourceKind.USER && userUuid !== uuid) {
// Load another users home projects
dispatch(finishLoadingProject(uuid));
+ dispatch<any>(setSidePanelBreadcrumbs(uuid));
} else if (userUuid !== uuid) {
await dispatch(finishLoadingProject(uuid));
const match = await loadGroupContentsResource({
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list