File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
src/components/app/details Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -363,6 +363,8 @@ export const Details = ({
363
363
)
364
364
}
365
365
366
+ console . log ( 'triggerDetails' , triggerDetails )
367
+
366
368
if ( ! areTagDetailsRequired && ! triggerDetailsLoading && ! triggerDetails ) return < Reload />
367
369
if ( areTagDetailsRequired && ! ( tagDetailsLoading || triggerDetailsLoading ) && ! triggerDetails ) return < Reload />
368
370
if ( triggerDetails . id !== + buildId ) return null
@@ -386,7 +388,7 @@ export const Details = ({
386
388
artifact = { triggerDetails . artifact }
387
389
environmentName = { triggerDetails . environmentName }
388
390
isJobView = { isJobView }
389
- workerPodName = { triggerDetails . name }
391
+ workerPodName = { triggerDetails . podName }
390
392
/>
391
393
< ul className = "tab-list dc__border-bottom pl-20 pr-20" >
392
394
< li className = "tab-list__tab" >
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ const WorkerStatus = React.memo(
133
133
// check if finishedOn time is timed out or not
134
134
const isTimedOut = moment ( finishedOn ) . isBefore ( moment ( ) . subtract ( TIMEOUT_VALUE , 'hours' ) )
135
135
// finishedOn is 0001-01-01T00:00:00Z when the worker is still running
136
- const showLink = finishedOn === ZERO_TIME_STRING || ! isTimedOut
136
+ const showLink = workerPodName . length > 0 && ( finishedOn === ZERO_TIME_STRING || ! isTimedOut )
137
137
138
138
return (
139
139
< >
@@ -143,8 +143,8 @@ const WorkerStatus = React.memo(
143
143
{ stage === 'DEPLOY' ? (
144
144
< div className = "mr-10" > Message</ div >
145
145
) : showLink ? (
146
- < NavLink to = { `${ WORKER_POD_BASE_URL } /${ workerPodName } /logs` } className = "anchor" >
147
- < div className = "mr-10" > Worker </ div >
146
+ < NavLink to = { `${ WORKER_POD_BASE_URL } /${ workerPodName } /logs` } target = '_blank' className = "anchor" >
147
+ < div className = "mr-10" > View worker pod </ div >
148
148
</ NavLink >
149
149
) : (
150
150
< div className = "mr-10" > Worker</ div >
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ export interface History {
13
13
name : string
14
14
status : string
15
15
podStatus : string
16
+ podName : string
16
17
message : string
17
18
startedOn : string
18
19
finishedOn : string
You can’t perform that action at this time.
0 commit comments