This is an automated email from the ASF dual-hosted git repository.
chenyulin0719 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-web.git
The following commit(s) were added to refs/heads/master by this push:
new 8dbee6b [YUNIKORN-2935] Only show children when the queueNode
actually has children (#212)
8dbee6b is described below
commit 8dbee6b591c0af2296f5ba043a3edbef448d859f
Author: DouPache <[email protected]>
AuthorDate: Wed Oct 23 00:09:40 2024 +0800
[YUNIKORN-2935] Only show children when the queueNode actually has children
(#212)
Closes: #212
Signed-off-by: Yu-Lin Chen <[email protected]>
---
src/app/components/queue-v2/queues-v2.component.ts | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/app/components/queue-v2/queues-v2.component.ts
b/src/app/components/queue-v2/queues-v2.component.ts
index 156b352..11f5242 100644
--- a/src/app/components/queue-v2/queues-v2.component.ts
+++ b/src/app/components/queue-v2/queues-v2.component.ts
@@ -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){
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]