added condtional tag rendering to Project setup

This commit is contained in:
Pavel Laptev 2024-01-29 23:55:11 +01:00 committed by GitButler
parent 381f8b87fc
commit 7b549f5cfb

View File

@ -94,9 +94,13 @@
<svelte:fragment slot="title">GitButler features</svelte:fragment>
<svelte:fragment slot="body">
<label class="project-setup__toggle-label" for="aiGenEnabled"
>Enable automatic branch and commit message generation.</label
>
{#if $user$}
<label class="project-setup__toggle-label" for="aiGenEnabled"
>Enable automatic branch and commit message generation.</label
>
{:else}
Enable automatic branch and commit message generation.
{/if}
</svelte:fragment>
<svelte:fragment slot="toggle">
{#if $user$}