diff --git a/src/lib/wizards/functions/createTemplate.svelte b/src/lib/wizards/functions/createTemplate.svelte index 30a9ec010..355a62e47 100644 --- a/src/lib/wizards/functions/createTemplate.svelte +++ b/src/lib/wizards/functions/createTemplate.svelte @@ -102,8 +102,7 @@ }); $templateStepsComponents.set(2, { label: 'Permissions', - component: TemplatePermissions, - disabled: !$template?.scopes?.length + component: TemplatePermissions }); $templateStepsComponents.set(3, { label: 'Variables', diff --git a/src/lib/wizards/functions/steps/templateDeployment.svelte b/src/lib/wizards/functions/steps/templateDeployment.svelte index 0b631bd8f..4d6fc9bdc 100644 --- a/src/lib/wizards/functions/steps/templateDeployment.svelte +++ b/src/lib/wizards/functions/steps/templateDeployment.svelte @@ -33,12 +33,8 @@ Deployment - - Connect your function to a Git repository for automatic deployments or deploy your function - using the CLI. - -

Automatic with Git Recommended

+

Connect with Git Recommended

-

Manual with CLI

+

Quick start

diff --git a/src/lib/wizards/functions/steps/templatePermissions.svelte b/src/lib/wizards/functions/steps/templatePermissions.svelte index b7cf52dd9..19dff11b3 100644 --- a/src/lib/wizards/functions/steps/templatePermissions.svelte +++ b/src/lib/wizards/functions/steps/templatePermissions.svelte @@ -57,30 +57,32 @@ -

Function scopes

- - {#each templateScopes as scope, i} -
- - - - -
- {#if i < templateScopes.length - 1} -
- {/if} - {/each} -
+ {#if templateScopes.length > 0} +

Function scopes

+ + {#each templateScopes as scope, i} +
+ + + + +
+ {#if i < templateScopes.length - 1} +
+ {/if} + {/each} +
+ {/if}