Browse Source

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

(cherry picked from commit 3dd007ca59)
3.0.0/version-upgrade
Amy0104 3 years ago committed by Jiajie Zhong
parent
commit
a521d49e94
  1. 11
      dolphinscheduler-ui/src/common/common.ts
  2. 1
      dolphinscheduler-ui/src/common/types.ts
  3. 1
      dolphinscheduler-ui/src/locales/modules/en_US.ts
  4. 1
      dolphinscheduler-ui/src/locales/modules/zh_CN.ts

11
dolphinscheduler-ui/src/common/common.ts

@ -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'
}
})

1
dolphinscheduler-ui/src/common/types.ts

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

1
dolphinscheduler-ui/src/locales/modules/en_US.ts

@ -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',

1
dolphinscheduler-ui/src/locales/modules/zh_CN.ts

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

Loading…
Cancel
Save