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/03/23 10:24:38 UTC

[dolphinscheduler] branch dev updated: [Fix][UI Next][V1.0.0-Alpha] Fix the deploy mode with an extra client option in FLINK. (#9131)

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 08ea1aa  [Fix][UI Next][V1.0.0-Alpha] Fix the deploy mode with an extra client option in FLINK. (#9131)
08ea1aa is described below

commit 08ea1aa701910d90ed16164e9019557292cc4249
Author: Amy0104 <97...@users.noreply.github.com>
AuthorDate: Wed Mar 23 18:24:28 2022 +0800

    [Fix][UI Next][V1.0.0-Alpha] Fix the deploy mode with an extra client option in FLINK. (#9131)
---
 .../views/projects/task/components/node/fields/use-deploy-mode.ts   | 6 ++++--
 .../src/views/projects/task/components/node/fields/use-flink.ts     | 2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-deploy-mode.ts b/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-deploy-mode.ts
index 9b97e34..13f8121 100644
--- a/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-deploy-mode.ts
+++ b/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-deploy-mode.ts
@@ -17,14 +17,16 @@
 import { useI18n } from 'vue-i18n'
 import type { IJsonItem } from '../types'
 
-export function useDeployMode(span = 24): IJsonItem {
+export function useDeployMode(span = 24, showClient = true): IJsonItem {
   const { t } = useI18n()
 
   return {
     type: 'radio',
     field: 'deployMode',
     name: t('project.node.deploy_mode'),
-    options: DEPLOY_MODES,
+    options: DEPLOY_MODES.filter((option) =>
+      option.value === 'client' ? showClient : true
+    ),
     span
   }
 }
diff --git a/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-flink.ts b/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-flink.ts
index 38563cc..0286b2d 100644
--- a/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-flink.ts
+++ b/dolphinscheduler-ui-next/src/views/projects/task/components/node/fields/use-flink.ts
@@ -114,7 +114,7 @@ export function useFlink(model: { [field: string]: any }): IJsonItem[] {
       },
       options: mainJarOptions
     },
-    useDeployMode(),
+    useDeployMode(24, false),
     {
       type: 'select',
       field: 'flinkVersion',