Browse Source

[Fix] [UI-Next][V1.0.0-Alpha] Rename node to task in the task creation modal (#9351)

Devosend 3 years ago
parent
commit
c21f8c650b

+ 2 - 1
dolphinscheduler-ui-next/src/locales/modules/en_US.ts

@@ -531,6 +531,7 @@ const project = {
       'There is not any workflows. Please create a workflow, and then visit this page again.'
   },
   task: {
+    current_task_settings: 'Current task settings',
     online: 'Online',
     offline: 'Offline',
     task_name: 'Task Name',
@@ -618,7 +619,7 @@ const project = {
     view_history: 'View history',
     view_log: 'View log',
     enter_this_child_node: 'Enter this child node',
-    name: 'Node name',
+    name: 'Name',
     name_tips: 'Please enter name (required)',
     task_type: 'Task Type',
     task_type_tips: 'Please select a task type (required)',

+ 5 - 1
dolphinscheduler-ui-next/src/views/projects/task/components/node/detail-modal.tsx

@@ -181,7 +181,11 @@ const NodeDetailModal = defineComponent({
     return () => (
       <Modal
         show={props.show}
-        title={`${t('project.node.current_node_settings')}`}
+        title={
+          props.from === 1
+            ? `${t('project.task.current_task_settings')}`
+            : `${t('project.node.current_node_settings')}`
+        }
         onConfirm={onConfirm}
         confirmLoading={props.saving}
         confirmDisabled={props.readonly}