Skip to content
Snippets Groups Projects
Commit c507e9bb authored by capossele's avatar capossele
Browse files

:children_crossing: disables node deletion from UI

parent 8638edee
No related branches found
No related tags found
No related merge requests found
...@@ -78,7 +78,7 @@ func index(w http.ResponseWriter, r *http.Request) { ...@@ -78,7 +78,7 @@ func index(w http.ResponseWriter, r *http.Request) {
const Graph = ForceGraph3D()(elem) const Graph = ForceGraph3D()(elem)
.enableNodeDrag(false) .enableNodeDrag(false)
.onNodeHover(node => elem.style.cursor = node ? 'pointer' : null) .onNodeHover(node => elem.style.cursor = node ? 'pointer' : null)
.onNodeClick(removeNodeX) .onNodeClick()
.nodeColor(node => node.online ? 'rgba(0,255,0,1)' : 'rgba(255,255,255,1)') .nodeColor(node => node.online ? 'rgba(0,255,0,1)' : 'rgba(255,255,255,1)')
.graphData(data); .graphData(data);
......
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