diff --git a/src/lib/components/alert.svelte b/src/lib/components/alert.svelte index c45d773a2..f7f03ab45 100644 --- a/src/lib/components/alert.svelte +++ b/src/lib/components/alert.svelte @@ -43,23 +43,27 @@ {/if}

- {#if buttons?.length && !isAction} + {#if ($$slots.buttons || buttons?.length) && !isAction}
- {#each buttons as button} - - {/each} + + {#each buttons as button} + + {/each} +
{/if} - {#if buttons?.length && isAction} + {#if ($$slots.buttons || buttons?.length) && isAction}
- {#each buttons as button} - - {/each} + + {#each buttons as button} + + {/each} +
{/if} diff --git a/src/lib/system.ts b/src/lib/system.ts index 984788285..171ddf61e 100644 --- a/src/lib/system.ts +++ b/src/lib/system.ts @@ -23,4 +23,4 @@ export const ENV = { export const MODE = VARS.CONSOLE_MODE === Mode.CLOUD ? Mode.CLOUD : Mode.SELF_HOSTED; export const isCloud = MODE === Mode.CLOUD; -export const isSelfHosted = MODE === Mode.SELF_HOSTED; +export const isSelfHosted = MODE !== Mode.CLOUD; diff --git a/src/routes/console/project-[project]/settings/updateInstallations.svelte b/src/routes/console/project-[project]/settings/updateInstallations.svelte index 94e3f1db0..cad649c81 100644 --- a/src/routes/console/project-[project]/settings/updateInstallations.svelte +++ b/src/routes/console/project-[project]/settings/updateInstallations.svelte @@ -2,6 +2,7 @@ import { goto } from '$app/navigation'; import { page } from '$app/stores'; import { + Alert, AvatarGroup, CardGrid, DropList, @@ -27,6 +28,7 @@ import GitInstallationModal from './GitInstallationModal.svelte'; import GitDisconnectModal from './GitDisconnectModal.svelte'; import dayjs from 'dayjs'; + import { isSelfHosted } from '$lib/system'; export let total: number; export let limit: number; @@ -176,6 +178,19 @@ bind:offset /> {:else} + {#if isSelfHosted} + + + Installing Git to a self-hosted instance + + When installing Git in a locally hosted Appwrite project, you must first configure + your environment variables. + + + + + + {/if}