X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/a353970c1fcfc61ebac8b3587f4b16b6c25b62e1..835fca715fcf8da391049b46ae89f600569896f0:/src/components/details-attribute/details-attribute.tsx diff --git a/src/components/details-attribute/details-attribute.tsx b/src/components/details-attribute/details-attribute.tsx index 01276c57..2cecc8ce 100644 --- a/src/components/details-attribute/details-attribute.tsx +++ b/src/components/details-attribute/details-attribute.tsx @@ -62,6 +62,7 @@ interface DetailsAttributeDataProps { onValueClick?: () => void; linkToUuid?: string; copyValue?: string; + uuidEnhancer?: Function; } type DetailsAttributeProps = DetailsAttributeDataProps & WithStyles & FederationConfig & DispatchProp; @@ -84,23 +85,25 @@ export const DetailsAttribute = connect(mapStateToProps)(withStyles(styles)( } render() { - const { label, link, value, children, classes, classLabel, + const { uuidEnhancer, label, link, value, children, classes, classLabel, classValue, lowercaseValue, onValueClick, linkToUuid, localCluster, remoteHostsConfig, sessions, copyValue } = this.props; let valueNode: React.ReactNode; if (linkToUuid) { + const uuid = uuidEnhancer ? uuidEnhancer(linkToUuid) : linkToUuid; const linkUrl = getNavUrl(linkToUuid || "", { localCluster, remoteHostsConfig, sessions }); if (linkUrl[0] === '/') { - valueNode = {linkToUuid}; + valueNode = {uuid}; } else { - valueNode = {linkToUuid}; + valueNode = {uuid}; } } else if (link) { valueNode = {value}; } else { valueNode = value; } + return {label}