From 82e9c40df872b77b66e32cbd26660ccb8b56f620 Mon Sep 17 00:00:00 2001 From: Sheldon <39169452+sketchmind@users.noreply.github.com> Date: Wed, 10 Aug 2022 11:45:20 +0800 Subject: [PATCH] [Fix-11366][UI] Workflow instance should not support right-click running (#11367) Co-authored-by: sheldonliu --- .../components/dag/dag-context-menu.tsx | 20 ++++++++++++------- .../workflow/components/dag/index.tsx | 1 + 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/dolphinscheduler-ui/src/views/projects/workflow/components/dag/dag-context-menu.tsx b/dolphinscheduler-ui/src/views/projects/workflow/components/dag/dag-context-menu.tsx index 74b8317b88..87161c3d27 100644 --- a/dolphinscheduler-ui/src/views/projects/workflow/components/dag/dag-context-menu.tsx +++ b/dolphinscheduler-ui/src/views/projects/workflow/components/dag/dag-context-menu.tsx @@ -26,6 +26,10 @@ import { IWorkflowTaskInstance } from './types' import { NButton } from 'naive-ui' const props = { + startButtonDisplay: { + type: Boolean as PropType, + default: true + }, startReadonly: { type: Boolean as PropType, default: false @@ -127,13 +131,15 @@ export default defineComponent({ class={styles['dag-context-menu']} style={{ left: `${this.left}px`, top: `${this.top}px` }} > - - {t('project.node.start')} - + {this.startButtonDisplay && ( + + {t('project.node.start')} + ) + }