mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
feat(editor): Add ‘execute workflow’ buttons below triggers on the canvas (#12769)
Co-authored-by: Danny Martini <danny@n8n.io> Co-authored-by: Mutasem Aldmour <mutasem@n8n.io>
This commit is contained in:
@@ -23,6 +23,13 @@ export class ManualExecutionService {
|
||||
|
||||
getExecutionStartNode(data: IWorkflowExecutionDataProcess, workflow: Workflow) {
|
||||
let startNode;
|
||||
|
||||
// If the user chose a trigger to start from we honor this.
|
||||
if (data.triggerToStartFrom?.name) {
|
||||
startNode = workflow.getNode(data.triggerToStartFrom.name) ?? undefined;
|
||||
}
|
||||
|
||||
// Old logic for partial executions v1
|
||||
if (
|
||||
data.startNodes?.length === 1 &&
|
||||
Object.keys(data.pinData ?? {}).includes(data.startNodes[0].name)
|
||||
|
||||
Reference in New Issue
Block a user