Skip to content

Commit

Permalink
[YUNIKORN-2935] Only show children when the queueNode actually has ch…
Browse files Browse the repository at this point in the history
…ildren (#212)

Closes: #212

Signed-off-by: Yu-Lin Chen <chenyulin0719@apache.org>
  • Loading branch information
doupache authored and chenyulin0719 committed Oct 22, 2024
1 parent 5856427 commit 8dbee6b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/app/components/queue-v2/queues-v2.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,13 @@ function queueVisualization(rawData : QueueInfo , componentInstance: QueueV2Comp
.attr("pointer-events", "none")
.style("visibility", "hidden");

group.on("mouseover", function() {
plusCircle.style("visibility", "visible");
plusText.style("visibility", "visible");
});
if (d.children) {
group.on("mouseover", function() {
plusCircle.style("visibility", "visible");
plusText.style("visibility", "visible");
});
}


group.on("click", function() {
if(selectedNode == this || selectedNode == null){
Expand Down

0 comments on commit 8dbee6b

Please sign in to comment.