Commit d9ca01b5 authored by Jaden DIEFENBAUGH's avatar Jaden DIEFENBAUGH

[js][exp] make tc name clickable in exp name, closes #122

parent 420ce36d
......@@ -94,6 +94,14 @@ export class EntityDetail extends React.Component<Props, State> {
const name = this.props.match.params.name;
const obj = this.props.getEntityObject();
const index = this.props.getEntityIndex();
let expName;
if(this.props.entity === 'experiment'){
const segs = name.split('/');
const usern = segs.shift();
const expn = segs.pop();
const tcn = segs.join('/');
expName = <span>{ usern }/<Link to={`/toolchain/${ tcn }`}>{ tcn }</Link>/{ expn }</span>
}
return (
<Container>
<Row className='mb-1'>
......@@ -105,7 +113,7 @@ export class EntityDetail extends React.Component<Props, State> {
</span>
{' '}
<pre style={{display: 'inline'}}>
{ name }
{ expName || name }
</pre>
<ValidSchemaBadge entity={this.props.entity} obj={obj} />
</h4>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment