mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-05-07 10:42:56 +00:00
fix
This commit is contained in:
parent
90a3c08db8
commit
2fac2e1ef0
@ -106,7 +106,6 @@ limitations under the License. -->
|
|||||||
traceId: currentSpan.value?.traceId || "",
|
traceId: currentSpan.value?.traceId || "",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// showDetail.value = true;
|
|
||||||
}
|
}
|
||||||
function traverseTree(node: Recordable, spanId: string, segmentId: string, data: Recordable) {
|
function traverseTree(node: Recordable, spanId: string, segmentId: string, data: Recordable) {
|
||||||
if (!node || node.isBroken) {
|
if (!node || node.isBroken) {
|
||||||
|
@ -157,11 +157,12 @@ export default class ListGraph {
|
|||||||
})
|
})
|
||||||
.on("click", function (event: MouseEvent, d: Trace & { id: string }) {
|
.on("click", function (event: MouseEvent, d: Trace & { id: string }) {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
const hasClass = d3.select(this).classed("highlighted");
|
||||||
if (t.selectedNode) {
|
if (t.selectedNode) {
|
||||||
t.selectedNode.classed("highlighted", false);
|
t.selectedNode.classed("highlighted", false);
|
||||||
d3.select("#action-box").style("display", "none");
|
d3.select("#action-box").style("display", "none");
|
||||||
}
|
}
|
||||||
if (t.selectedNode?.datum().id !== d.id) {
|
if (!hasClass) {
|
||||||
d3.select(this).classed("highlighted", true);
|
d3.select(this).classed("highlighted", true);
|
||||||
d3.select("#action-box")
|
d3.select("#action-box")
|
||||||
.style("display", "block")
|
.style("display", "block")
|
||||||
|
Loading…
Reference in New Issue
Block a user