Browse Source

[Improvement-14363][UI] Add Default Branch Flow in switch task (#14364)

Rick Cheng 1 year ago
parent
commit
79b6db74fe

+ 1 - 0
dolphinscheduler-ui/src/locales/en_US/project.ts

@@ -579,6 +579,7 @@ export default {
     add_pre_task_check_condition: 'Add pre task check condition',
     switch_condition: 'Condition',
     switch_branch_flow: 'Branch Flow',
+    switch_branch_flow_default: 'Default Branch Flow',
     switch_branch_flow_tips: 'Please select branch flow',
     and: 'and',
     or: 'or',

+ 1 - 0
dolphinscheduler-ui/src/locales/zh_CN/project.ts

@@ -570,6 +570,7 @@ export default {
     add_pre_task_check_condition: '添加前置检查条件',
     switch_condition: '条件',
     switch_branch_flow: '分支流转',
+    switch_branch_flow_default: '默认分支流转',
     switch_branch_flow_tips: '请选择分支流转',
     and: '且',
     or: '或',

+ 1 - 1
dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-switch.ts

@@ -117,7 +117,7 @@ export function useSwitch(
       type: 'select',
       field: 'nextNode',
       span: 24,
-      name: t('project.node.switch_branch_flow'),
+      name: t('project.node.switch_branch_flow_default'),
       props: {
         loading: loading
       },