Unverified Commit 05d3f608 authored by Zzm0809's avatar Zzm0809 Committed by GitHub

[Fix] fix devops status render bug (#3106)

parent c1864545
......@@ -20,6 +20,7 @@
import { StatusTagProps } from '@/components/JobTags/data';
import { BackPressureStatus, JOB_STATUS } from '@/pages/DevOps/constants';
import {
AlertTwoTone,
CheckCircleOutlined,
ClockCircleOutlined,
InfoCircleOutlined,
......@@ -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 />,
......@@ -103,7 +109,7 @@ const StatusTag = (props: StatusTagProps) => {
};
default:
return {
icon: <SyncOutlined spin />,
icon: <QuestionCircleOutlined />,
color: 'default',
text: 'UNKNOWN'
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment