mirror of
https://github.com/argoproj/argo-cd
synced 2026-04-21 17:07:16 +00:00
fix(ui): Highlight failing containers in the UI (#17143)
* failing container icon added Signed-off-by: Surajyadav <harrypotter1108@gmail.com> * lint-fix Signed-off-by: Surajyadav <harrypotter1108@gmail.com> * .. Signed-off-by: Surajyadav <harrypotter1108@gmail.com> * tried yarn lint-fix Signed-off-by: Surajyadav <harrypotter1108@gmail.com> * margin Signed-off-by: Surajyadav <harrypotter1108@gmail.com> * running Signed-off-by: Surajyadav <harrypotter1108@gmail.com> --------- Signed-off-by: Surajyadav <harrypotter1108@gmail.com>
This commit is contained in:
parent
839526e976
commit
24ac326384
1 changed files with 14 additions and 1 deletions
|
|
@ -21,7 +21,20 @@ const RenderContainerState = (props: {container: any}) => {
|
|||
|
||||
return (
|
||||
<div className='application-node-info__container'>
|
||||
<div className='application-node-info__container--name'>{props.container.name}</div>
|
||||
<div className='application-node-info__container--name'>
|
||||
{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) ||
|
||||
(lastState && lastState?.exitCode !== 0 && (
|
||||
<span style={{marginRight: '4px'}}>
|
||||
<i className='fa fa-times-circle' style={{color: 'red'}} />
|
||||
</span>
|
||||
))}
|
||||
{props.container.name}
|
||||
</div>
|
||||
<div>
|
||||
{state && (
|
||||
<>
|
||||
|
|
|
|||
Loading…
Reference in a new issue