Skip to content

Commit

Permalink
[Fix] fix devops status render bug (#3106)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzm0809 authored Jan 31, 2024
1 parent c186454 commit 05d3f60
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions dinky-web/src/components/JobTags/StatusTag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import { StatusTagProps } from '@/components/JobTags/data';
import { BackPressureStatus, JOB_STATUS } from '@/pages/DevOps/constants';
import {
AlertTwoTone,
CheckCircleOutlined,
ClockCircleOutlined,
InfoCircleOutlined,
Expand Down Expand Up @@ -52,7 +53,12 @@ const StatusTag = (props: StatusTagProps) => {
color: 'blue',
text: 'FINISHED'
};

case JOB_STATUS.FAILED:
return {
icon: <AlertTwoTone twoToneColor={'red'} />,
color: 'red',
text: 'FAILED'
};
case JOB_STATUS.CANCELED:
return {
icon: <MinusCircleOutlined />,
Expand Down Expand Up @@ -103,7 +109,7 @@ const StatusTag = (props: StatusTagProps) => {
};
default:
return {
icon: <SyncOutlined spin />,
icon: <QuestionCircleOutlined />,
color: 'default',
text: 'UNKNOWN'
};
Expand Down

0 comments on commit 05d3f60

Please sign in to comment.