You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by so...@apache.org on 2022/04/06 08:31:26 UTC

[dolphinscheduler] branch dev updated: [Fix][UI Next][V1.0.0-Alpha]Add zh for dag execution policy (#9363)

This is an automated email from the ASF dual-hosted git repository.

songjian pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new ce7740b9fc [Fix][UI Next][V1.0.0-Alpha]Add zh for dag execution policy (#9363)
ce7740b9fc is described below

commit ce7740b9fc7705c7188e019a2ee8cb0feef06629
Author: Devosend <de...@gmail.com>
AuthorDate: Wed Apr 6 16:31:20 2022 +0800

    [Fix][UI Next][V1.0.0-Alpha]Add zh for dag execution policy (#9363)
---
 .../workflow/components/dag/dag-save-modal.tsx       | 20 +++++++++++++-------
 1 file changed, 13 insertions(+), 7 deletions(-)

diff --git a/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/dag-save-modal.tsx b/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/dag-save-modal.tsx
index c4ab2b0976..d96379b336 100644
--- a/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/dag-save-modal.tsx
+++ b/dolphinscheduler-ui-next/src/views/projects/workflow/components/dag/dag-save-modal.tsx
@@ -95,12 +95,7 @@ export default defineComponent({
       sync: false
     })
     const formRef = ref()
-    const executeTypeOptions = [
-      { value: 'PARALLEL', label: 'parallel' },
-      { value: 'SERIAL_WAIT', label: 'Serial wait' },
-      { value: 'SERIAL_DISCARD', label: 'Serial discard' },
-      { value: 'SERIAL_PRIORITY', label: 'Serial priority' }
-    ]
+
     const rule = {
       name: {
         required: true,
@@ -228,7 +223,18 @@ export default defineComponent({
               path='executionType'
             >
               <NSelect
-                options={executeTypeOptions}
+                options={[
+                  { value: 'PARALLEL', label: t('project.dag.parallel') },
+                  { value: 'SERIAL_WAIT', label: t('project.dag.serial_wait') },
+                  {
+                    value: 'SERIAL_DISCARD',
+                    label: t('project.dag.serial_discard')
+                  },
+                  {
+                    value: 'SERIAL_PRIORITY',
+                    label: t('project.dag.serial_priority')
+                  }
+                ]}
                 v-model:value={formValue.value.executionType}
               />
             </NFormItem>