File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
src/routes/(console)/organization-[organization] Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 16
16
PaginationWithLimit
17
17
} from ' $lib/components' ;
18
18
import { goto } from ' $app/navigation' ;
19
- import { Submit , trackError , trackEvent } from ' $lib/actions/analytics' ;
19
+ import { Submit , trackError , trackEvent , Click } from ' $lib/actions/analytics' ;
20
20
import { sdk } from ' $lib/stores/sdk' ;
21
21
import { loading } from ' $routes/store' ;
22
22
import { ID , Region , type Models } from ' @appwrite.io/console' ;
23
23
import { openImportWizard } from ' ../project-[region]-[project]/settings/migrations/(import)' ;
24
- import { billingProjectsLimitDate , readOnly } from ' $lib/stores/billing' ;
24
+ import { billingProjectsLimitDate , readOnly , upgradeURL } from ' $lib/stores/billing' ;
25
25
import { onMount , type ComponentType } from ' svelte' ;
26
26
import { canWriteProjects } from ' $lib/stores/roles' ;
27
27
import { checkPricingRefAndRedirect } from ' $lib/helpers/pricingRedirect' ;
184
184
<Button secondary size ="s" on:click ={() => (showSelectProject = true )}>
185
185
Manage projects
186
186
</Button >
187
+ <Button
188
+ size =" s"
189
+ href ={$upgradeURL }
190
+ on:click ={() => {
191
+ trackEvent (Click .OrganizationClickUpgrade , {
192
+ from: ' button' ,
193
+ source: ' projects_archive_alert'
194
+ });
195
+ }}>
196
+ Upgrade to Pro
197
+ </Button >
187
198
</svelte:fragment >
188
199
</Alert .Inline >
189
200
{/if }
You can’t perform that action at this time.
0 commit comments