From f8bb7842c8ecbb91098feb29a23ef948f7b3c191 Mon Sep 17 00:00:00 2001 From: cramakri <cramakri> Date: Thu, 14 Nov 2013 14:27:57 +0000 Subject: [PATCH] BIS-549 SP-1006 : Do not show the parent of the starting sample in the top down view. SVN: 30148 --- .../1/as/webapps/sample-graph/html/webapp.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deep_sequencing_unit/source/core-plugins/ngs-sample-overview-graph/1/as/webapps/sample-graph/html/webapp.js b/deep_sequencing_unit/source/core-plugins/ngs-sample-overview-graph/1/as/webapps/sample-graph/html/webapp.js index 585e1d75b29..ee195fb51ce 100644 --- a/deep_sequencing_unit/source/core-plugins/ngs-sample-overview-graph/1/as/webapps/sample-graph/html/webapp.js +++ b/deep_sequencing_unit/source/core-plugins/ngs-sample-overview-graph/1/as/webapps/sample-graph/html/webapp.js @@ -375,9 +375,9 @@ SampleGraphPresenter.prototype.initializeGraphSamples = function() } SampleGraphPresenter.prototype.updateVisibility = function() { - // Turn off visibility on all nodes - this.allNodes.forEach(function(samps, i) { - samps.forEach(function(s) { s.visible = (i > 0) ? false : true }) + // Turn off visibility on all nodes except the root node + this.allNodes.forEach(function(samps) { + samps.forEach(function(s) { s.visible = s.identifier == model.sampleIdentifier; }) }); var outEdgesGetter = this.outEdgesFunction(); // Figure out if the nodes should be visible -- GitLab