Skip to content

Commit

Permalink
Fix edge hiding
Browse files Browse the repository at this point in the history
Fixes #1471
  • Loading branch information
davkal committed May 11, 2016
1 parent 0a46d61 commit b51e7a9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions client/app/scripts/charts/nodes-chart-edges.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@ class NodesChartEdges extends React.Component {
const targetSelected = selectedNodeId === edge.get('target');
const highlighted = highlightedEdgeIds.has(edge.get('id'));
const focused = hasSelectedNode && (sourceSelected || targetSelected);
const blurred = !focused
&& !highlighted
&& (!searchQuery
|| !(searchNodeMatches.has(edge.get('source'))
&& searchNodeMatches.has(edge.get('target'))));
const blurred = !(highlightedEdgeIds.size > 0 && highlighted)
&& ((hasSelectedNode && !sourceSelected && !targetSelected)
|| !focused && searchQuery && !(searchNodeMatches.has(edge.get('source'))
&& searchNodeMatches.has(edge.get('target'))));

return (
<EdgeContainer
Expand Down

0 comments on commit b51e7a9

Please sign in to comment.