Skip to content
Snippets Groups Projects
Commit 0dacbb52 authored by AndiMajore's avatar AndiMajore
Browse files

fixed full reset function to work with tissue overlay

parent 30d2bf8e
No related branches found
No related tags found
No related merge requests found
......@@ -123,6 +123,8 @@ export class AnalysisPanelComponent implements OnInit, OnChanges, AfterViewInit
public reset() {
this.resetEmitter.emit(true);
this.networkHandler.activeNetwork.selectedTissue = null;
this.networkHandler.activeNetwork.expressionExpanded = false;
this.close();
}
......
......@@ -116,6 +116,8 @@ export class NetworkComponent implements OnInit {
@Output() resetEmitter: EventEmitter<boolean> = new EventEmitter();
public reset() {
this.nodeGroupsWithExpression = new Set();
this.nodeRenderer = null;
this.resetEmitter.emit(true);
}
......@@ -130,6 +132,16 @@ export class NetworkComponent implements OnInit {
return {edges: this.inputNetwork.edges, nodes};
}
resetInputNetwork(){
const nodes = this.inputNetwork.nodes;
nodes.forEach(n => {
if (n._group) {
n.group = n._group;
delete n._group;
}
});
}
setLoading(bool: boolean): void {
this.loading = bool;
}
......
......@@ -48,6 +48,7 @@ export class ExplorerPageComponent implements OnInit, AfterViewInit {
public reset() {
this.networkHandler.activeNetwork.selectTissue(null);
this.config = this.config;
this.network = this.network;
this.groups = this.groups;
......@@ -181,7 +182,6 @@ export class ExplorerPageComponent implements OnInit, AfterViewInit {
}
public bind(f: (token: (string | null)) => void) {
return f.bind(this);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment