File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed
src/main/frontend/pipeline-console-view/pipeline-console/main Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 11import React from "react" ;
22
33export interface StageNodeLinkProps {
4- agent : string ;
4+ agent : string ;
55}
66
77function getAgentUrl ( name : string ) {
8- // Wrap built-in in brackets
9- const id = name == "built-in" ? "(built-in)" : name ;
10- const rootPath = document . head . dataset . rooturl
11- return `${ rootPath } /computer/${ id } /` ;
8+ // Wrap built-in in brackets
9+ const id = name == "built-in" ? "(built-in)" : name ;
10+ const rootPath = document . head . dataset . rooturl ;
11+ return `${ rootPath } /computer/${ id } /` ;
1212}
1313
14- const StageNodeLink = ( { agent} : StageNodeLinkProps ) => {
15- const agentName = agent == "built-in" ? "Jenkins" : agent ;
16- const href = getAgentUrl ( agent ) ;
17- return < >
18- Running on < a href = { href } > { agentName } </ a >
14+ const StageNodeLink = ( { agent } : StageNodeLinkProps ) => {
15+ const agentName = agent == "built-in" ? "Jenkins" : agent ;
16+ const href = getAgentUrl ( agent ) ;
17+ return (
18+ < >
19+ Running on < a href = { href } > { agentName } </ a >
1920 </ >
21+ ) ;
2022} ;
2123
2224export default StageNodeLink ;
Original file line number Diff line number Diff line change @@ -92,9 +92,7 @@ const StageSummary = (props: StageSummaryProps) => (
9292 className = "detail-icon"
9393 key = { `stage-detail-agent-icon-${ props . stage . id } ` }
9494 />
95- < span
96- key = { `stage-detail-agent-text-${ props . stage . id } ` }
97- >
95+ < span key = { `stage-detail-agent-text-${ props . stage . id } ` } >
9896 < StageNodeLink agent = { props . stage . agent } />
9997 </ span >
10098 </ div >
You can’t perform that action at this time.
0 commit comments