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

disable selection when no analysis available

parent 02a94603
No related branches found
No related tags found
No related merge requests found
......@@ -285,6 +285,11 @@ export class ExplorerPageComponent implements OnInit, AfterViewInit {
this.networkHandler.activeNetwork.networkInternal = new vis.Network(container, this.nodeData, options);
if (!this.drugstoneConfig.config.showSidebar) {
// skip network options for selecting nodes when there are no options to use it
return
}
this.networkHandler.activeNetwork.networkInternal.on('doubleClick', (properties) => {
const nodeIds: Array<string> = properties.nodes;
if (nodeIds != null && nodeIds.length > 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment