Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion airflow/www/static/js/dag_dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

/*
global d3, localStorage, dagreD3, dagNodes, edges, arrange, document,
global d3, localStorage, dagreD3, dagNodes, edges, arrange, document, window,
*/

const highlightColor = "#000000";
Expand Down Expand Up @@ -224,6 +224,15 @@ const renderGraph = () => {
innerSvg.call(render, g);
setUpNodeHighlighting();
setUpZoomSupport();

g.nodes().forEach((nodeId) => {
const node = g.node(nodeId);
if (node.class === "dag") {
d3.select(node.elem).on("click", () => {
window.location.href = `/dags/${node.label}/grid?tab=graph`;
});
}
});
};

// rerender graph when filtering dags with dependencies or not
Expand Down
Loading