From ee0ffa47e28af0918ecf8bcd9e093362c2a4a947 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Wed, 1 Oct 2025 13:46:12 +0000 Subject: [PATCH] improve json inputs rendering --- frontend/src/lib/components/RunForm.svelte | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/frontend/src/lib/components/RunForm.svelte b/frontend/src/lib/components/RunForm.svelte index f97e39e079..f9ff176c34 100644 --- a/frontend/src/lib/components/RunForm.svelte +++ b/frontend/src/lib/components/RunForm.svelte @@ -237,10 +237,12 @@ {/if} {#if runnable?.schema}
- {#if !runnable.schema.properties || Object.keys(runnable.schema.properties).length === 0} -
No arguments
- {:else if jsonView} -
+ {#if jsonView} +
{ @@ -252,6 +254,8 @@ placeholder={`Write args as JSON.

Example:

{
  "foo": "12"
}`} />
+ {:else if !runnable.schema.properties || Object.keys(runnable.schema.properties).length === 0} +
No arguments
{:else} {#key reloadArgs}