Skip to content

Commit

Permalink
Merge pull request #911 from weaveworks/908-shorter-child-tooltips
Browse files Browse the repository at this point in the history
Just show the untruncated label in the tooltip on children
  • Loading branch information
paulbellamy committed Feb 3, 2016
2 parents 51be599 + 28de56f commit 2ed3968
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,16 @@ export default class NodeDetailsTableNodeLink extends React.Component {
}

render() {
const titleLines = [`${this.props.label} (${this.props.topologyId})`];
this.props.metadata.forEach(data => {
titleLines.push(`${data.label}: ${data.value}`);
});
const title = titleLines.join('\n');

if (this.props.linkable) {
return (
<span className="node-details-table-node-link truncate" title={title}
<span className="node-details-table-node-link truncate" title={this.props.label}
onClick={this.handleClick}>
{this.props.label}
</span>
);
}
return (
<span className="node-details-table-node truncate" title={title}>
<span className="node-details-table-node truncate" title={this.props.label}>
{this.props.label}
</span>
);
Expand Down

0 comments on commit 2ed3968

Please sign in to comment.