Skip to content

Commit c1d66e2

Browse files
authored
Merge pull request #3093 from appwrite/fix-backup-policy-upgrade-link
fix: point backup policy upgrade link to enterprise contact page
2 parents f12239a + 8db6777 commit c1d66e2

1 file changed

Lines changed: 8 additions & 13 deletions

File tree

  • src/routes/(console)/project-[region]-[project]/databases/database-[database]/backups

src/routes/(console)/project-[region]-[project]/databases/database-[database]/backups/createPolicy.svelte

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import { ID, type Models } from '@appwrite.io/console';
1414
import { capitalize } from '$lib/helpers/string';
1515
import { backupRetainingOptions, customRetainingOptions } from '../store';
16-
import { presetPolicies, showCreatePolicy } from './store';
16+
import { presetPolicies } from './store';
1717
import {
1818
backupFrequencies,
1919
backupPolicyDescription,
@@ -24,8 +24,6 @@
2424
import { Card, Icon, Layout, Link, Tag, Typography } from '@appwrite.io/pink-svelte';
2525
import { IconPencil, IconTrash } from '@appwrite.io/pink-icons-svelte';
2626
import { isSmallViewport } from '$lib/stores/viewport';
27-
import { goto } from '$app/navigation';
28-
import { getChangePlanUrl } from '$lib/stores/billing';
2927
3028
export let isShowing: boolean;
3129
export let disabled: boolean = false;
@@ -251,11 +249,9 @@
251249
<Button
252250
extraCompact
253251
class="u-underline cursor-pointer"
254-
on:click={() => {
255-
isShowing = false;
256-
$showCreatePolicy = false;
257-
goto(getChangePlanUrl(project.teamId));
258-
}}>Upgrade your plan</Button> to add customized backup policies.
252+
external
253+
href="https://appwrite.io/contact-us/enterprise"
254+
>Upgrade to Enterprise</Button> to add customized backup policies.
259255
</Layout.Stack>
260256
</Layout.Stack>
261257
{:else}
@@ -268,11 +264,10 @@
268264
<Typography.Text variant="m-400" slot="description">
269265
Daily backups are retained for 7 days.
270266

271-
<Link.Button
272-
on:click={() => {
273-
isShowing = false;
274-
goto(getChangePlanUrl(project.teamId));
275-
}}>Upgrade your plan</Link.Button>
267+
<Link.Anchor
268+
href="https://appwrite.io/contact-us/enterprise"
269+
target="_blank"
270+
rel="noopener noreferrer">Upgrade to Enterprise</Link.Anchor>
276271
to add customized backup policies.
277272
</Typography.Text>
278273
</InputSwitch>

0 commit comments

Comments
 (0)