|
45 | 45 | import { tooltip } from '$lib/actions/tooltip'; |
46 | 46 | import { isSelfHosted } from '$lib/system'; |
47 | 47 | import { consoleVariables } from '$routes/console/store'; |
| 48 | + import Activate from '$routes/console/project-[project]/functions/function-[function]/activate.svelte'; |
48 | 49 |
|
49 | 50 | const isVcsEnabled = $consoleVariables?._APP_VCS_ENABLED === true; |
50 | 51 | let hasInstallations: boolean; |
|
93 | 94 | <div |
94 | 95 | class="git-container u-position-relative" |
95 | 96 | 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} |
99 | 98 | <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> |
113 | 116 | </div> |
114 | | - </div> |
| 117 | + {/if} |
115 | 118 | <div class="grid-1-1 u-gap-24"> |
116 | 119 | <div class="card u-cross-child-start u-height-100-percent"> |
117 | 120 | <Heading size="6" tag="h6">Connect Git repository</Heading> |
|
0 commit comments