[Fix][UI] Add the task status of pending. (#10129)

(cherry picked from commit 3dd007ca59)
This commit is contained in:
Amy0104 2022-05-20 10:06:43 +08:00 committed by Jiajie Zhong
parent bb47ced474
commit a521d49e94
4 changed files with 13 additions and 1 deletions

View File

@ -31,7 +31,8 @@ import {
StopOutlined,
GlobalOutlined,
IssuesCloseOutlined,
SendOutlined
SendOutlined,
HistoryOutlined
} from '@vicons/antd'
import { format, parseISO } from 'date-fns'
import _ from 'lodash'
@ -275,6 +276,14 @@ export const tasksState = (t: any): ITaskStateConfig => ({
icon: SendOutlined,
isSpin: false,
classNames: 'dispatch'
},
PENDING: {
id: 18,
desc: `${t('project.workflow.pending')}`,
color: '#5101be',
icon: HistoryOutlined,
isSpin: false,
classNames: 'pending'
}
})

View File

@ -33,6 +33,7 @@ export type ITaskState =
| 'FORCED_SUCCESS'
| 'SERIAL_WAIT'
| 'DISPATCH'
| 'PENDING'
export type ITaskStateConfig = {
[key in ITaskState]: {

View File

@ -498,6 +498,7 @@ const project = {
forced_success: 'Forced success',
serial_wait: 'Serial wait',
dispatch: 'Dispatch',
pending: 'Pending',
executing: 'Executing',
startup_type: 'Startup Type',
complement_range: 'Complement Range',

View File

@ -495,6 +495,7 @@ const project = {
forced_success: '强制成功',
serial_wait: '串行等待',
dispatch: '派发',
pending: '挂起',
executing: '正在执行',
startup_type: '启动类型',
complement_range: '补数范围',