From 1eecbc1ac2d7bbb9f22fae250b18965e2fee4265 Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Tue, 16 Jun 2026 17:01:22 -0400 Subject: [PATCH] fix(ui): collapse Code Execution settings when toggle is disabled (#25970) --- .../admin/Settings/CodeExecution.svelte | 191 +++++++++--------- 1 file changed, 98 insertions(+), 93 deletions(-) diff --git a/src/lib/components/admin/Settings/CodeExecution.svelte b/src/lib/components/admin/Settings/CodeExecution.svelte index 6195672869..9d25805830 100644 --- a/src/lib/components/admin/Settings/CodeExecution.svelte +++ b/src/lib/components/admin/Settings/CodeExecution.svelte @@ -41,7 +41,7 @@ {#if config}
-
{$i18n.t('General')}
+
{$i18n.t('Code Execution')}

@@ -55,112 +55,117 @@
-
-
-
{$i18n.t('Code Execution Engine')}
-
- -
-
- - {#if config.CODE_EXECUTION_ENGINE === 'jupyter'} -
- {$i18n.t( - 'Warning: Jupyter execution enables arbitrary code execution, posing severe security risks—proceed with extreme caution.' - )} -
- {/if} -
- - {#if config.CODE_EXECUTION_ENGINE === 'jupyter'} -
-
- {$i18n.t('Jupyter URL')} -
- -
-
- + {#if config.ENABLE_CODE_EXECUTION} +
+
+
+ {$i18n.t('Code Execution Engine')}
-
-
- -
-
-
- {$i18n.t('Jupyter Auth')} -
- -
+
- {#if config.CODE_EXECUTION_JUPYTER_AUTH} -
-
- {#if config.CODE_EXECUTION_JUPYTER_AUTH === 'password'} - - {:else} - - {/if} -
+ {#if config.CODE_EXECUTION_ENGINE === 'jupyter'} +
+ {$i18n.t( + 'Warning: Jupyter execution enables arbitrary code execution, posing severe security risks—proceed with extreme caution.' + )}
{/if}
-
-
- {$i18n.t('Code Execution Timeout')} + {#if config.CODE_EXECUTION_ENGINE === 'jupyter'} +
+
+ {$i18n.t('Jupyter URL')} +
+ +
+
+ +
+
-
- - - +
+
+
+ {$i18n.t('Jupyter Auth')} +
+ +
+ +
+
+ + {#if config.CODE_EXECUTION_JUPYTER_AUTH} +
+
+ {#if config.CODE_EXECUTION_JUPYTER_AUTH === 'password'} + + {:else} + + {/if} +
+
+ {/if}
-
+ +
+
+ {$i18n.t('Code Execution Timeout')} +
+ +
+ + + +
+
+ {/if} {/if}