Skip to content

Commit 470be4b

Browse files
committed
fix: disable toggle is more consistently applied on arg inputs
1 parent 03903d0 commit 470be4b

File tree

2 files changed

+31
-20
lines changed

2 files changed

+31
-20
lines changed

backend/windmill-worker/nsjail/run.ansible.config.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ mount {
3737
mandatory: false
3838
}
3939

40+
mount {
41+
src: "/root/.local/share/uv/tools/ansible"
42+
dst: "/root/.local/share/uv/tools/ansible"
43+
is_bind: true
44+
}
45+
4046
mount {
4147
src: "/usr"
4248
dst: "/usr"

frontend/src/lib/components/ArgInput.svelte

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@
448448
bind:value
449449
currency={extra?.currency}
450450
locale={extra?.currencyLocale ?? 'en-US'}
451+
{disabled}
451452
/>
452453
{:else}
453454
<div class="relative w-full">
@@ -982,29 +983,33 @@
982983
</div>
983984
{:else if inputCat == 'date'}
984985
{#if format === 'date'}
985-
<DateInput {autofocus} bind:value dateFormat={extra?.['dateFormat']} />
986+
<DateInput {disabled} {autofocus} bind:value dateFormat={extra?.['dateFormat']} />
986987
{:else}
987-
<DateTimeInput useDropdown {autofocus} bind:value />
988+
<DateTimeInput {disabled} useDropdown {autofocus} bind:value />
988989
{/if}
989990
{:else if inputCat == 'sql' || inputCat == 'yaml'}
990-
<div class="border my-1 mb-4 w-full border-primary">
991-
{#await import('$lib/components/SimpleEditor.svelte')}
992-
<Loader2 class="animate-spin" />
993-
{:then Module}
994-
<Module.default
995-
on:focus={(e) => {
996-
dispatch('focus')
997-
}}
998-
on:blur={(e) => {
999-
dispatch('blur')
1000-
}}
1001-
bind:this={editor}
1002-
lang={inputCat}
1003-
bind:code={value}
1004-
autoHeight
1005-
/>
1006-
{/await}
1007-
</div>
991+
{#if disabled}
992+
<textarea disabled />
993+
{:else}
994+
<div class="border my-1 mb-4 w-full border-secondary">
995+
{#await import('$lib/components/SimpleEditor.svelte')}
996+
<Loader2 class="animate-spin" />
997+
{:then Module}
998+
<Module.default
999+
on:focus={(e) => {
1000+
dispatch('focus')
1001+
}}
1002+
on:blur={(e) => {
1003+
dispatch('blur')
1004+
}}
1005+
bind:this={editor}
1006+
lang={inputCat}
1007+
bind:code={value}
1008+
autoHeight
1009+
/>
1010+
{/await}
1011+
</div>
1012+
{/if}
10081013
{:else if inputCat == 'base64'}
10091014
<div class="flex flex-col my-6 w-full">
10101015
<input

0 commit comments

Comments
 (0)