Skip to content

Commit 28a75e9

Browse files
authored
Redirect to logs page on node graph click (#41)
1 parent 3f5aca4 commit 28a75e9

File tree

1 file changed

+1
-8
lines changed
  • src/main/frontend/pipeline-graph-view

1 file changed

+1
-8
lines changed

src/main/frontend/pipeline-graph-view/app.tsx

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,15 @@
11
import * as React from "react";
22
import {
33
FunctionComponent,
4-
useEffect,
5-
useState /*, useEffect, useState */,
64
} from "react";
75

86
import { PipelineGraph } from "./pipeline-graph/main";
97

108
import "./app.scss";
119
import "./pipeline-graph/styles/main.scss";
1210

13-
// @ts-ignore
14-
// const rootUrl = rootURL;
15-
// @ts-ignore
16-
// const csrfCrumb = crumb.value;
17-
1811
function handleNodeClick(nodeName: string, id: number) {
19-
alert(`clicked ${nodeName} ${id}`);
12+
window.location.href = '../pipeline-console?selected-node=' + id
2013
}
2114

2215
const App: FunctionComponent = () => {

0 commit comments

Comments
 (0)