diff --git a/frontend/src/components/scripts/ScriptParameterForm.tsx b/frontend/src/components/scripts/ScriptParameterForm.tsx index 55450bdb..b4dfb720 100644 --- a/frontend/src/components/scripts/ScriptParameterForm.tsx +++ b/frontend/src/components/scripts/ScriptParameterForm.tsx @@ -1,3 +1,4 @@ +import { Terminal } from 'lucide-react' import { useScriptGeneratorStore } from '@/store/scriptGeneratorStore' import { ScriptParameterField } from './ScriptParameterField' import type { ScriptParametersSchema, ScriptParameter } from '@/types' @@ -40,6 +41,17 @@ export function ScriptParameterForm({ canGenerate }: Props) { /> ) + if (parameters.length === 0) { + return ( +
+ +

+ This template has no parameters — click Generate to produce the script. +

+
+ ) + } + return (
{ungrouped.map(renderParam)}