X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/df6ddb0c91aaed31cd242b5250835fce4308ef9f..ea1216cb8346848cb2f8dd09fda14803c83d3557:/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..7633b71a 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}