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

liudongkai 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 6b2a4e3  [Fix][UI-Next][V1.0.0-Alpha] Fix the notification strategy 
options display error in the set parameters before timing modal. (#9314)
6b2a4e3 is described below

commit 6b2a4e31eadf707272381ced26a81eaa557e60c0
Author: Amy0104 <[email protected]>
AuthorDate: Fri Apr 1 17:41:39 2022 +0800

    [Fix][UI-Next][V1.0.0-Alpha] Fix the notification strategy options display 
error in the set parameters before timing modal. (#9314)
---
 .../definition/components/timing-modal.tsx         | 39 ++++++++++------------
 1 file changed, 18 insertions(+), 21 deletions(-)

diff --git 
a/dolphinscheduler-ui-next/src/views/projects/workflow/definition/components/timing-modal.tsx
 
b/dolphinscheduler-ui-next/src/views/projects/workflow/definition/components/timing-modal.tsx
index d0bb4a8..b8eb9e2 100644
--- 
a/dolphinscheduler-ui-next/src/views/projects/workflow/definition/components/timing-modal.tsx
+++ 
b/dolphinscheduler-ui-next/src/views/projects/workflow/definition/components/timing-modal.tsx
@@ -102,25 +102,6 @@ export default defineComponent({
       }
     }
 
-    const warningTypeOptions = [
-      {
-        value: 'NONE',
-        label: t('project.workflow.none_send')
-      },
-      {
-        value: 'SUCCESS',
-        label: t('project.workflow.success_send')
-      },
-      {
-        value: 'FAILURE',
-        label: t('project.workflow.failure_send')
-      },
-      {
-        value: 'ALL',
-        label: t('project.workflow.all_send')
-      }
-    ]
-
     const priorityOptions = [
       {
         value: 'HIGHEST',
@@ -235,7 +216,6 @@ export default defineComponent({
       crontabRef,
       parallelismRef,
       priorityOptions,
-      warningTypeOptions,
       environmentOptions,
       hideModal,
       handleTiming,
@@ -342,7 +322,24 @@ export default defineComponent({
             path='warningType'
           >
             <NSelect
-              options={this.warningTypeOptions}
+              options={[
+                {
+                  value: 'NONE',
+                  label: t('project.workflow.none_send')
+                },
+                {
+                  value: 'SUCCESS',
+                  label: t('project.workflow.success_send')
+                },
+                {
+                  value: 'FAILURE',
+                  label: t('project.workflow.failure_send')
+                },
+                {
+                  value: 'ALL',
+                  label: t('project.workflow.all_send')
+                }
+              ]}
               v-model:value={this.timingForm.warningType}
             />
           </NFormItem>

Reply via email to