(null);
const [savedWebhookInfo, setSavedWebhookInfo] = React.useState<{
relayHttpUrl: string;
@@ -265,6 +276,7 @@ export function WorkflowDialog({
setYamlDefinition(initialYaml);
setEditorMode(getInitialEditorMode(initialYaml));
setEditorParseError(null);
+ setWorkflowNameEditing(false);
setSavedWebhookInfo(null);
setDiscardConfirmationOpen(false);
resetCreate();
@@ -431,15 +443,25 @@ export function WorkflowDialog({
? "Copy this workflow and adjust its details."
: "Automate actions when something happens in a channel."}
-
+
-
)}
- {mode === "form" && headerTrailingContainer
+ {mode === "form" && nameLeadingContainer
? createPortal(
-
-
-
- updateFormState({ ...formState, enabled: checked })
- }
- />
-
,
- headerTrailingContainer,
+
+ updateFormState({ ...formState, enabled: checked })
+ }
+ />,
+ nameLeadingContainer,
)
: null}
>