Browse Source

[Fix][UI Next] Add workflow online status display (#9253)

3.0.0/version-upgrade
Devosend 3 years ago committed by GitHub
parent
commit
c87af0eba8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      dolphinscheduler-ui-next/src/locales/modules/en_US.ts
  2. 3
      dolphinscheduler-ui-next/src/locales/modules/zh_CN.ts
  3. 16
      dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/dag-toolbar.tsx

3
dolphinscheduler-ui-next/src/locales/modules/en_US.ts

@ -622,7 +622,8 @@ const project = {
node_not_created: 'Failed to save node not created', node_not_created: 'Failed to save node not created',
copy_name: 'Copy Name', copy_name: 'Copy Name',
view_variables: 'View Variables', view_variables: 'View Variables',
startup_parameter: 'Startup Parameter' startup_parameter: 'Startup Parameter',
online: 'Online'
}, },
node: { node: {
current_node_settings: 'Current node settings', current_node_settings: 'Current node settings',

3
dolphinscheduler-ui-next/src/locales/modules/zh_CN.ts

@ -618,7 +618,8 @@ const project = {
node_not_created: '未创建节点保存失败', node_not_created: '未创建节点保存失败',
copy_name: '复制名称', copy_name: '复制名称',
view_variables: '查看变量', view_variables: '查看变量',
startup_parameter: '启动参数' startup_parameter: '启动参数',
online: '已上线'
}, },
node: { node: {
current_node_settings: '当前节点设置', current_node_settings: '当前节点设置',

16
dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/dag-toolbar.tsx

@ -18,7 +18,15 @@
import { defineComponent, ref, inject, PropType, Ref } from 'vue' import { defineComponent, ref, inject, PropType, Ref } from 'vue'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import Styles from './dag.module.scss' import Styles from './dag.module.scss'
import { NTooltip, NIcon, NButton, NSelect, NPopover, NText } from 'naive-ui' import {
NTooltip,
NIcon,
NButton,
NSelect,
NPopover,
NText,
NTag
} from 'naive-ui'
import { import {
SearchOutlined, SearchOutlined,
DownloadOutlined, DownloadOutlined,
@ -195,6 +203,12 @@ export default defineComponent({
></NTooltip> ></NTooltip>
)} )}
<div class={Styles['toolbar-left-part']}> <div class={Styles['toolbar-left-part']}>
{route.name !== 'workflow-instance-detail' &&
props.definition?.processDefinition?.releaseState === 'ONLINE' && (
<NTag round size='small' type='info'>
{t('project.dag.online')}
</NTag>
)}
{route.name === 'workflow-instance-detail' && ( {route.name === 'workflow-instance-detail' && (
<> <>
<NTooltip <NTooltip

Loading…
Cancel
Save