mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
fix: support button breaking when no organization was set (e.g. account and onboarding pages)
This commit is contained in:
1 parent
5f61621e5a
commit
dcaf611f6a
1 file changed
+16
-1
@@ -13,6 +13,7 @@
|
||||
import { BillingPlan } from '$lib/constants';
|
||||
import ChangeOrganizationTierCloud from '$routes/console/changeOrganizationTierCloud.svelte';
|
||||
import { trackEvent } from '$lib/actions/analytics';
|
||||
import CreateOrganizationCloud from '$routes/console/createOrganizationCloud.svelte';
|
||||
|
||||
export let show = false;
|
||||
|
||||
@@ -55,7 +56,7 @@
|
||||
}}>
|
||||
<span class="text">Contact our Support Team</span>
|
||||
</Button>
|
||||
{:else}
|
||||
{:else if $organization?.$id}
|
||||
<Button
|
||||
fullWidth
|
||||
external
|
||||
@@ -68,6 +69,20 @@
|
||||
}}>
|
||||
<span class="text">Get Premium support</span>
|
||||
</Button>
|
||||
{:else}
|
||||
<Button
|
||||
fullWidth
|
||||
external
|
||||
on:click={() => {
|
||||
wizard.start(CreateOrganizationCloud);
|
||||
trackEvent('click_organization_create', {
|
||||
from: 'button',
|
||||
source: 'support_menu'
|
||||
});
|
||||
}}>
|
||||
<span class="text">Get Premium support</span>
|
||||
</Button>
|
||||
<p>Create a Pro organization for personalized support from the Appwrite team</p>
|
||||
{/if}
|
||||
</section>
|
||||
{/if}
|
||||
|
||||
Reference in new issue
Block a user