From 470be4b05306e19d27a18ad7fec2fe0820636de8 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Fri, 21 Feb 2025 14:05:33 +0100 Subject: [PATCH] fix: disable toggle is more consistently applied on arg inputs --- .../nsjail/run.ansible.config.proto | 6 +++ frontend/src/lib/components/ArgInput.svelte | 45 ++++++++++--------- 2 files changed, 31 insertions(+), 20 deletions(-) diff --git a/backend/windmill-worker/nsjail/run.ansible.config.proto b/backend/windmill-worker/nsjail/run.ansible.config.proto index 463de39770b71..6b03032238967 100644 --- a/backend/windmill-worker/nsjail/run.ansible.config.proto +++ b/backend/windmill-worker/nsjail/run.ansible.config.proto @@ -37,6 +37,12 @@ mount { mandatory: false } +mount { + src: "/root/.local/share/uv/tools/ansible" + dst: "/root/.local/share/uv/tools/ansible" + is_bind: true +} + mount { src: "/usr" dst: "/usr" diff --git a/frontend/src/lib/components/ArgInput.svelte b/frontend/src/lib/components/ArgInput.svelte index 48b25c7e2020c..7323588ad5261 100644 --- a/frontend/src/lib/components/ArgInput.svelte +++ b/frontend/src/lib/components/ArgInput.svelte @@ -448,6 +448,7 @@ bind:value currency={extra?.currency} locale={extra?.currencyLocale ?? 'en-US'} + {disabled} /> {:else}
@@ -982,29 +983,33 @@
{:else if inputCat == 'date'} {#if format === 'date'} - + {:else} - + {/if} {:else if inputCat == 'sql' || inputCat == 'yaml'} -
- {#await import('$lib/components/SimpleEditor.svelte')} - - {:then Module} - { - dispatch('focus') - }} - on:blur={(e) => { - dispatch('blur') - }} - bind:this={editor} - lang={inputCat} - bind:code={value} - autoHeight - /> - {/await} -
+ {#if disabled} +