Skip to content
Snippets Groups Projects
Commit d919e536 authored by Hartung, Michael's avatar Hartung, Michael
Browse files

remove drug associated disorders if they are displayed and drugs are disabled

parent 22c5562b
No related branches found
No related tags found
No related merge requests found
...@@ -183,6 +183,10 @@ export class NetworkComponent implements OnInit { ...@@ -183,6 +183,10 @@ export class NetworkComponent implements OnInit {
}) })
this.legendContext = this.adjacentDisordersDrug || this.adjacentDisordersProtein ? 'adjacentDrugsAndDisorders' : 'adjacentDrugs'; this.legendContext = this.adjacentDisordersDrug || this.adjacentDisordersProtein ? 'adjacentDrugsAndDisorders' : 'adjacentDrugs';
} else { } else {
// remove adjacent drugs, make sure that also drug associated disorders are removed
if (this.adjacentDisordersDrug) {
this.updateAdjacentDrugDisorders(false);
}
this.nodeData.nodes.remove(this.adjacentDrugList); this.nodeData.nodes.remove(this.adjacentDrugList);
this.nodeData.edges.remove(this.adjacentDrugEdgesList); this.nodeData.edges.remove(this.adjacentDrugEdgesList);
this.adjacentDrugList = []; this.adjacentDrugList = [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment