From 8db6777b19512433a43cb19b0f58f0421bfaa631 Mon Sep 17 00:00:00 2001 From: harsh mahajan Date: Wed, 24 Jun 2026 20:00:20 +0530 Subject: [PATCH] fix: point backup policy upgrade link to enterprise contact page Pro plan users hitting the 1-policy limit were sent to the change-plan page which only shows Free/Pro options, leaving them confused since they were already on Pro. Now links directly to the enterprise contact page. --- .../backups/createPolicy.svelte | 21 +++++++------------ 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/src/routes/(console)/project-[region]-[project]/databases/database-[database]/backups/createPolicy.svelte b/src/routes/(console)/project-[region]-[project]/databases/database-[database]/backups/createPolicy.svelte index 62c4a4978..e9b78b7de 100644 --- a/src/routes/(console)/project-[region]-[project]/databases/database-[database]/backups/createPolicy.svelte +++ b/src/routes/(console)/project-[region]-[project]/databases/database-[database]/backups/createPolicy.svelte @@ -13,7 +13,7 @@ import { ID, type Models } from '@appwrite.io/console'; import { capitalize } from '$lib/helpers/string'; import { backupRetainingOptions, customRetainingOptions } from '../store'; - import { presetPolicies, showCreatePolicy } from './store'; + import { presetPolicies } from './store'; import { backupFrequencies, backupPolicyDescription, @@ -24,8 +24,6 @@ import { Card, Icon, Layout, Link, Tag, Typography } from '@appwrite.io/pink-svelte'; import { IconPencil, IconTrash } from '@appwrite.io/pink-icons-svelte'; import { isSmallViewport } from '$lib/stores/viewport'; - import { goto } from '$app/navigation'; - import { getChangePlanUrl } from '$lib/stores/billing'; export let isShowing: boolean; export let disabled: boolean = false; @@ -251,11 +249,9 @@ to add customized backup policies. + external + href="https://appwrite.io/contact-us/enterprise" + >Upgrade to Enterprise to add customized backup policies. {:else} @@ -268,11 +264,10 @@ Daily backups are retained for 7 days. - { - isShowing = false; - goto(getChangePlanUrl(project.teamId)); - }}>Upgrade your plan + Upgrade to Enterprise to add customized backup policies.