Skip to content

Commit fd13e2d

Browse files
fix: functions create
1 parent e14f9a3 commit fd13e2d

File tree

1 file changed

+20
-17
lines changed

1 file changed

+20
-17
lines changed

src/lib/wizards/functions/cover.svelte

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
import { tooltip } from '$lib/actions/tooltip';
4646
import { isSelfHosted } from '$lib/system';
4747
import { consoleVariables } from '$routes/console/store';
48+
import Activate from '$routes/console/project-[project]/functions/function-[function]/activate.svelte';
4849
4950
const isVcsEnabled = $consoleVariables?._APP_VCS_ENABLED === true;
5051
let hasInstallations: boolean;
@@ -93,25 +94,27 @@
9394
<div
9495
class="git-container u-position-relative"
9596
class:u-margin-block-start-24={isSelfHosted && !isVcsEnabled}>
96-
<div
97-
class:u-hide={!isSelfHosted || isVcsEnabled}
98-
class="overlay u-flex-vertical u-position-absolute u-height-100-percent u-width-full-line u-z-index-1 card u-text-center">
97+
{#if isSelfHosted || !isVcsEnabled}
9998
<div
100-
class="u-flex-vertical u-height-100-percent u-main-center u-cross-center u-gap-16">
101-
<Heading size="7" tag="h6"
102-
>Configure your self-hosted instance to connect to Git</Heading>
103-
<p>
104-
Connect your function to a Git repository or use a pre-made template<br />after
105-
configuring your self-hosted instance. Learn more in our
106-
<a
107-
href="https://appwrite.io/docs/advanced/self-hosting/functions#git"
108-
target="_blank"
109-
rel="noopener noreferrer"
110-
class="link">documentation</a
111-
>.
112-
</p>
99+
class="overlay u-flex-vertical u-position-absolute u-height-100-percent u-width-full-line u-z-index-1 card u-text-center">
100+
<div
101+
class="u-flex-vertical u-height-100-percent u-main-center u-cross-center u-gap-16">
102+
<Heading size="7" tag="h6">
103+
Configure your self-hosted instance to connect to Git
104+
</Heading>
105+
<p>
106+
Connect your function to a Git repository or use a pre-made template<br />after
107+
configuring your self-hosted instance. Learn more in our
108+
<a
109+
href="https://appwrite.io/docs/advanced/self-hosting/functions#git"
110+
target="_blank"
111+
rel="noopener noreferrer"
112+
class="link">documentation</a
113+
>.
114+
</p>
115+
</div>
113116
</div>
114-
</div>
117+
{/if}
115118
<div class="grid-1-1 u-gap-24">
116119
<div class="card u-cross-child-start u-height-100-percent">
117120
<Heading size="6" tag="h6">Connect Git repository</Heading>

0 commit comments

Comments
 (0)