diff --git a/src/lib/wizards/functions/steps/templateVariables.svelte b/src/lib/wizards/functions/steps/templateVariables.svelte index b51a4996d..c7db15bd4 100644 --- a/src/lib/wizards/functions/steps/templateVariables.svelte +++ b/src/lib/wizards/functions/steps/templateVariables.svelte @@ -56,80 +56,34 @@ {#if $template?.variables?.length} {#if requiredVariables?.length} - {#if requiredVariables?.length === 1 || requiredVariables.every((variable) => variable.required)} -
-
-
-
- Required variables - - {requiredVariables.length} - -
-
-
- - {#each requiredVariables as variable} - {#if variable.name === 'APPWRITE_API_KEY'} - - {:else} -
- - - {@html variable.description} - -
- {/if} - {/each} -
-
-
-
- {:else if requiredVariables?.length > 1} - - - Required variables - - {requiredVariables.length} - + + + Required variables + + {requiredVariables.length} + - - {#each requiredVariables as variable} - {#if variable.name === 'APPWRITE_API_KEY'} - - {:else} -
- - - {@html variable.description} - -
- {/if} - {/each} -
-
-
- {/if} + + {#each requiredVariables as variable} +
+ + + {@html variable.description} + +
+ {/each} +
+
+
{/if} {#if optionalVariables?.length} @@ -142,25 +96,21 @@ {#each optionalVariables as variable} - {#if variable.name === 'APPWRITE_API_KEY'} - - {:else} -
- +
+ - - {@html variable.description} - -
- {/if} + + {@html variable.description} + +
{/each}
@@ -172,9 +122,3 @@ {/if} - -