diff --git a/packages/editor-ui/src/components/canvas/elements/buttons/CanvasRunWorkflowButton.vue b/packages/editor-ui/src/components/canvas/elements/buttons/CanvasRunWorkflowButton.vue index 8f05b5a2b4..1561ed19c0 100644 --- a/packages/editor-ui/src/components/canvas/elements/buttons/CanvasRunWorkflowButton.vue +++ b/packages/editor-ui/src/components/canvas/elements/buttons/CanvasRunWorkflowButton.vue @@ -1,21 +1,24 @@ + + diff --git a/packages/editor-ui/src/views/NodeView.v2.vue b/packages/editor-ui/src/views/NodeView.v2.vue index 95dee594a7..4a905796b7 100644 --- a/packages/editor-ui/src/views/NodeView.v2.vue +++ b/packages/editor-ui/src/views/NodeView.v2.vue @@ -1006,13 +1006,13 @@ const isClearExecutionButtonVisible = computed( const workflowExecutionData = computed(() => workflowsStore.workflowExecutionData); -async function onRunWorkflow() { +async function onRunWorkflow(triggerNode?: string) { trackRunWorkflow(); if (!isExecutionPreview.value && workflowsStore.isWaitingExecution) { - void runWorkflowResolvePending({}); + void runWorkflowResolvePending({ triggerNode }); } else { - void runWorkflow({}); + void runWorkflow({ triggerNode }); } } @@ -1621,9 +1621,10 @@ onBeforeUnmount(() => { :waiting-for-webhook="isExecutionWaitingForWebhook" :disabled="isExecutionDisabled" :executing="isWorkflowRunning" + :trigger-nodes="triggerNodes" @mouseenter="onRunWorkflowButtonMouseEnter" @mouseleave="onRunWorkflowButtonMouseLeave" - @click="onRunWorkflow" + @click="($event, selectedTrigger) => onRunWorkflow(selectedTrigger)" />