Add workflows settings in start node (#1270)

This commit is contained in:
Shuchang Zheng
2024-11-26 10:41:18 -08:00
committed by GitHub
parent 61f94af7f3
commit e0aadac962
13 changed files with 275 additions and 42 deletions

View File

@@ -5,6 +5,7 @@ import { useLocation, useParams } from "react-router-dom";
import { RunWorkflowForm } from "./RunWorkflowForm";
import { WorkflowApiResponse } from "./types/workflowTypes";
import { Skeleton } from "@/components/ui/skeleton";
import { ProxyLocation } from "@/api/types";
function WorkflowRunParameters() {
const credentialGetter = useCredentialGetter();
@@ -93,6 +94,10 @@ function WorkflowRunParameters() {
<RunWorkflowForm
initialValues={initialValues}
workflowParameters={workflowParameters}
initialSettings={{
proxyLocation: workflow.proxy_location ?? ProxyLocation.Residential,
webhookCallbackUrl: workflow.webhook_callback_url ?? "",
}}
/>
</div>
);