fix: empty state

This commit is contained in:
Arman
2025-02-10 10:39:43 +01:00
parent aa83e7fe57
commit aa52b95eb4
2 changed files with 14 additions and 5 deletions
+3 -3
View File
@@ -44,9 +44,9 @@
title="No installation was added to the project yet"
description="Add an installation to connect repositories">
<svelte:fragment slot="actions">
<Button secondary href={connectGitHub().toString()} disabled={!isVcsEnabled}>
<Icon icon={IconGithub} size="s" />
Add installation
<Button size="m" secondary href={connectGitHub().toString()} disabled={!isVcsEnabled}>
<Icon icon={IconGithub} size="m" />
Connect to GitHub
</Button>
</svelte:fragment>
</Empty>
@@ -26,14 +26,23 @@
</script>
<Wizard title="Create site" href={`${base}/project-${$page.params.project}/sites/`}>
<Fieldset legend="Git repository">
{#if hasInstallations}
<Fieldset legend="Git repository">
<Repositories
bind:hasInstallations
bind:selectedRepository
product="sites"
action="button"
on:connect={onConnect} />
</Fieldset>
{:else}
<Repositories
bind:hasInstallations
bind:selectedRepository
product="sites"
action="button"
on:connect={onConnect} />
</Fieldset>
{/if}
<svelte:fragment slot="aside">
<Card>