diff --git a/frontend/src/lib/components/RunForm.svelte b/frontend/src/lib/components/RunForm.svelte index 510f774587..e5b4e2780a 100644 --- a/frontend/src/lib/components/RunForm.svelte +++ b/frontend/src/lib/components/RunForm.svelte @@ -123,6 +123,9 @@ args?: Record jsonView?: boolean isValid?: boolean + /** Controls beside the Run button of a form that cannot schedule, in the row a + * schedulable one gives its Advanced options. */ + actions?: import('svelte').Snippet } let { @@ -141,7 +144,8 @@ overrideTagNote = undefined, args = $bindable(), jsonView = false, - isValid = $bindable(true) + isValid = $bindable(true), + actions = undefined }: Props = $props() let showPsCommonParams = $derived( @@ -385,6 +389,22 @@ {/if} + {:else if actions} + +
+ +
{@render actions()}
+
{:else} {/snippet} {#if draft.refusal} @@ -584,13 +582,13 @@ {#snippet runPane()} {#if runBlockedReason} -
- {@render modelStrip()} -
- {runBlockedReason} -
+
+ {runBlockedReason} + {#if onOpenConfig} + {@render configurationButton()} + {/if}
{:else}
@@ -599,9 +597,9 @@ {#if view} -
- {@render modelStrip()} -
+ +
+