From ad04910931019bba6bdbcc71e149b6909a5a4785 Mon Sep 17 00:00:00 2001 From: Arman Date: Tue, 13 Aug 2024 18:00:52 +0200 Subject: [PATCH] fix: selfhosted function creation --- src/lib/layout/containerButton.svelte | 4 +- src/lib/wizards/functions/cover.svelte | 77 +++++++------------ .../functions/steps/templateDeployment.svelte | 19 ++++- .../template-[template]/+page.svelte | 34 ++------ 4 files changed, 51 insertions(+), 83 deletions(-) diff --git a/src/lib/layout/containerButton.svelte b/src/lib/layout/containerButton.svelte index facdf58c56..e0b0512d35 100644 --- a/src/lib/layout/containerButton.svelte +++ b/src/lib/layout/containerButton.svelte @@ -7,10 +7,10 @@ export let title: string; export let tooltipContent = - $organization.billingPlan === BillingPlan.FREE + $organization?.billingPlan === BillingPlan.FREE ? `Upgrade to add more ${title.toLocaleLowerCase()}` : `You've reached the ${title.toLocaleLowerCase()} limit for the ${ - tierToPlan($organization.billingPlan).name + tierToPlan($organization?.billingPlan)?.name } plan`; export let disabled: boolean; export let buttonText: string; diff --git a/src/lib/wizards/functions/cover.svelte b/src/lib/wizards/functions/cover.svelte index 27409c2c87..c212b6b474 100644 --- a/src/lib/wizards/functions/cover.svelte +++ b/src/lib/wizards/functions/cover.svelte @@ -24,7 +24,7 @@ @@ -74,23 +68,7 @@

{$template.tagline}

- {#if isSelfHosted && !isVcsEnabled} - - - Cloning templates to a self-hosted instance - - In order to clone a template to a locally hosted Appwrite project, you must set - up a Git integration and configure your environment variables. - - - - - {/if} +