|
13 | 13 | import { ID, type Models } from '@appwrite.io/console'; |
14 | 14 | import { capitalize } from '$lib/helpers/string'; |
15 | 15 | import { backupRetainingOptions, customRetainingOptions } from '../store'; |
16 | | - import { presetPolicies, showCreatePolicy } from './store'; |
| 16 | + import { presetPolicies } from './store'; |
17 | 17 | import { |
18 | 18 | backupFrequencies, |
19 | 19 | backupPolicyDescription, |
|
24 | 24 | import { Card, Icon, Layout, Link, Tag, Typography } from '@appwrite.io/pink-svelte'; |
25 | 25 | import { IconPencil, IconTrash } from '@appwrite.io/pink-icons-svelte'; |
26 | 26 | import { isSmallViewport } from '$lib/stores/viewport'; |
27 | | - import { goto } from '$app/navigation'; |
28 | | - import { getChangePlanUrl } from '$lib/stores/billing'; |
29 | 27 |
|
30 | 28 | export let isShowing: boolean; |
31 | 29 | export let disabled: boolean = false; |
|
251 | 249 | <Button |
252 | 250 | extraCompact |
253 | 251 | 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. |
259 | 255 | </Layout.Stack> |
260 | 256 | </Layout.Stack> |
261 | 257 | {:else} |
|
268 | 264 | <Typography.Text variant="m-400" slot="description"> |
269 | 265 | Daily backups are retained for 7 days. |
270 | 266 |
|
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> |
276 | 271 | to add customized backup policies. |
277 | 272 | </Typography.Text> |
278 | 273 | </InputSwitch> |
|
0 commit comments