Skip to content

Commit

Permalink
frontend: Show label as terminated when exitCode is not available
Browse files Browse the repository at this point in the history
Signed-off-by: ashu8192 <[email protected]>
  • Loading branch information
ashu8912 committed Mar 11, 2024
1 parent 233bcbd commit 903175c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/components/common/Resource/Resource.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,11 @@ export function ContainerInfo(props: ContainerInfoProps) {
label = t('translation|Running');
} else if (!!status.state.terminated) {
statusType = status.state.terminated.exitCode === 0 ? '' : 'error';
label = t('translation|Error');
if (status.state.terminated.exitCode === 0) {
label = t('translation|Terminated');
} else {
label = t('translation|Error');
}
}

const tooltipID = 'container-state-message-' + container.name;
Expand Down

0 comments on commit 903175c

Please sign in to comment.