diff --git a/src/lib/wizards/functions/steps/templateVariables.svelte b/src/lib/wizards/functions/steps/templateVariables.svelte index d8e677344..e832a73cd 100644 --- a/src/lib/wizards/functions/steps/templateVariables.svelte +++ b/src/lib/wizards/functions/steps/templateVariables.svelte @@ -63,12 +63,51 @@ {#if $template?.variables?.length} {#if requiredVariables?.length} - - - Required variables - - {requiredVariables.length} - + {#if requiredVariables?.length === 1} +
+
+
+
+ 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} + {#each requiredVariables as variable} @@ -94,7 +133,8 @@ {/each} - +
+ {/if} {/if} {#if optionalVariables?.length} @@ -137,3 +177,9 @@ {/if} + + \ No newline at end of file