[arvados] updated: 2.7.0-5670-gbb3aaf6285
git repository hosting
git at public.arvados.org
Fri Dec 22 15:55:14 UTC 2023
Summary of changes:
.../src/views-components/data-explorer/renderers.tsx | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
via bb3aaf6285973dc17afaa1fbea1146425ef2dd3b (commit)
from dc16046dbfdca4a9c0d94971730d220b27e80620 (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 bb3aaf6285973dc17afaa1fbea1146425ef2dd3b
Author: Lisa Knox <lisaknox83 at gmail.com>
Date: Fri Dec 22 10:54:52 2023 -0500
21200: <msg here> Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox at curii.com>
diff --git a/services/workbench2/src/views-components/data-explorer/renderers.tsx b/services/workbench2/src/views-components/data-explorer/renderers.tsx
index 0e0db4b8f0..cbea3db94c 100644
--- a/services/workbench2/src/views-components/data-explorer/renderers.tsx
+++ b/services/workbench2/src/views-components/data-explorer/renderers.tsx
@@ -513,9 +513,9 @@ const getResourceDisplayName = (resource: Resource): string => {
}
};
-const renderResourceLink = (dispatch: Dispatch, item: Resource, userUuid: string = '', breadcrumbs: any[] = []) => {
+const renderResourceLink = (dispatch: Dispatch, item: Resource ) => {
var displayName = getResourceDisplayName(item);
-
+console.log(displayName, item)
return (
<Typography
noWrap
@@ -524,9 +524,9 @@ const renderResourceLink = (dispatch: Dispatch, item: Resource, userUuid: string
onClick={() => {
item.kind === ResourceKind.GROUP && (item as GroupResource).groupClass === "role"
? dispatch<any>(navigateToGroupDetails(item.uuid))
+ : item.kind === ResourceKind.USER
+ ? dispatch<any>(navigateToUserProfile(item.uuid))
: dispatch<any>(navigateTo(item.uuid));
- //don't add breadcrumb when navigating to 'Home Projects'
- if (item.uuid !== userUuid) setBreadcrumbs(breadcrumbs, item as any);
}}
>
{resourceLabel(item.kind, item && item.kind === ResourceKind.GROUP ? (item as GroupResource).groupClass || "" : "")}:{" "}
@@ -542,10 +542,8 @@ export const ResourceLinkTail = connect((state: RootState, props: { uuid: string
return {
item: tailResource || { uuid: resource?.tailUuid || "", kind: resource?.tailKind || ResourceKind.NONE },
- breadcrumbs: state.properties.breadcrumbs || [],
- userUuid
};
-})((props: { item: Resource, userUuid: string, breadcrumbs: any[] } & DispatchProp<any>) => renderResourceLink(props.dispatch, props.item, props.userUuid, props.breadcrumbs));
+})((props: { item: Resource } & DispatchProp<any>) => renderResourceLink(props.dispatch, props.item));
export const ResourceLinkHead = connect((state: RootState, props: { uuid: string }) => {
const resource = getResource<LinkResource>(props.uuid)(state.resources);
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list