mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
Track create org in breadcrumbs
This commit is contained in:
1 parent
63ea62f0cb
commit
834a34a2f8
2 files changed
+3
No files matched your search
@@ -297,6 +297,7 @@ export enum Submit {
|
||||
OrganizationUpgrade = 'submit_organization_upgrade',
|
||||
OrganizationDowngrade = 'submit_organization_downgrade',
|
||||
OrganizationBillingTaxIdUpdate = 'submit_organization_billing_tax_id_update',
|
||||
OrganizationClickCreate = 'click_create_organization',
|
||||
SupportTicket = 'submit_support_ticket',
|
||||
InstallationCreate = 'submit_installation_create',
|
||||
InstallationDelete = 'submit_installation_delete',
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
import { goto } from '$app/navigation';
|
||||
import { base } from '$app/paths';
|
||||
import { newOrgModal } from '$lib/stores/organization';
|
||||
import { Submit, trackEvent } from '$lib/actions/analytics';
|
||||
|
||||
type Project = {
|
||||
name: string;
|
||||
@@ -68,6 +69,7 @@
|
||||
let projectsBottomSheetOpen = false;
|
||||
|
||||
function createOrg() {
|
||||
trackEvent(Submit.OrganizationClickCreate, { source: 'breadcrumbs' });
|
||||
if (isCloud) {
|
||||
goto(`${base}/create-organization`);
|
||||
} else newOrgModal.set(true);
|
||||
|
||||
Reference in new issue
Block a user