Skip to content
This repository was archived by the owner on Sep 21, 2026. It is now read-only.

Commit 2cf0cf8

Browse files
authored
Merge pull request #2860 from appwrite/fix-backup-banner-cta
fix: use currentPlan for backup banner availability
2 parents da6dfe9 + dfa23cb commit 2cf0cf8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/lib/components/backupDatabaseAlert.svelte‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script lang="ts">
22
import { page } from '$app/state';
33
import { Button } from '$lib/elements/forms';
4-
import { organization } from '$lib/stores/organization';
4+
import { currentPlan, organization } from '$lib/stores/organization';
55
import { HeaderAlert } from '$lib/layout';
66
import { isCloud } from '$lib/system';
77
import { getChangePlanUrl } from '$lib/stores/billing';
@@ -17,7 +17,7 @@
1717
</script>
1818

1919
{#if $showPolicyAlert && isCloud && $organization?.$id && page.url.pathname.match(/\/databases\/database-[^/]+$/)}
20-
{@const areBackupsAvailable = $organization?.billingPlanDetails.backupsEnabled}
20+
{@const areBackupsAvailable = $currentPlan?.backupsEnabled}
2121

2222
{@const subtitle = !areBackupsAvailable
2323
? 'Upgrade your plan to ensure your data stays safe and backed up'

0 commit comments

Comments
 (0)