Skip to content

Commit

Permalink
fix(ui): container state (argoproj#18928)
Browse files Browse the repository at this point in the history
Signed-off-by: ashutosh16 <[email protected]>
Co-authored-by: ashutosh16 <[email protected]>
  • Loading branch information
ashutosh16 and ashutosh16 authored Aug 29, 2024
1 parent 1bbe17e commit aa14f76
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,18 @@ const RenderContainerState = (props: {container: any}) => {
return (
<div className='application-node-info__container'>
<div className='application-node-info__container--name'>
{props.container.state?.running && (
{props.container.state?.running ? (
<span style={{marginRight: '4px'}}>
<i className='fa fa-check-circle' style={{color: 'rgb(24, 190, 148)'}} />
</span>
)}
{(props.container.state.terminated && props.container.state.terminated?.exitCode !== 0) ||
) : (
(props.container.state.terminated && props.container.state.terminated?.exitCode !== 0) ||
(lastState && lastState?.exitCode !== 0 && (
<span style={{marginRight: '4px'}}>
<i className='fa fa-times-circle' style={{color: 'red'}} />
</span>
))}
))
)}
{props.container.name}
</div>
<div>
Expand Down

0 comments on commit aa14f76

Please sign in to comment.