+
{title}
{#if isCloud && limit !== 'unlimited' && limit < Infinity}
+
{#if isCloud}
diff --git a/src/routes/console/project-[project]/databases/+page.svelte b/src/routes/console/project-[project]/databases/+page.svelte
index ba1295862..2f9ba44d8 100644
--- a/src/routes/console/project-[project]/databases/+page.svelte
+++ b/src/routes/console/project-[project]/databases/+page.svelte
@@ -2,9 +2,9 @@
import { goto } from '$app/navigation';
import { base } from '$app/paths';
import { page } from '$app/stores';
- import { Empty, PaginationWithLimit } from '$lib/components';
+ import { Empty, PaginationWithLimit, ViewSelector } from '$lib/components';
import { Button } from '$lib/elements/forms';
- import { Container, GridHeader } from '$lib/layout';
+ import { Container, ContainerHeader } from '$lib/layout';
import type { Models } from '@appwrite.io/console';
import type { PageData } from './$types';
@@ -40,17 +40,20 @@
-
-
-
+
+
+
+
+
+
+
{#if data.databases.total}
{#if data.view === 'grid'}
diff --git a/src/routes/console/wizard/cloudOrganizationChangeTier/step1.svelte b/src/routes/console/wizard/cloudOrganizationChangeTier/step1.svelte
index d49e4a27f..b7b70ee5b 100644
--- a/src/routes/console/wizard/cloudOrganizationChangeTier/step1.svelte
+++ b/src/routes/console/wizard/cloudOrganizationChangeTier/step1.svelte
@@ -5,6 +5,7 @@
import { tierFree, tierPro, tierScale } from '$lib/stores/billing';
import { organization } from '$lib/stores/organization';
import { updateStepStatus } from '$lib/stores/wizard';
+ import { onMount } from 'svelte';
import { changeOrganizationTier, changeTierSteps } from './store';
$: if ($changeOrganizationTier.billingPlan === 'tier-0' && $changeTierSteps) {
@@ -19,6 +20,17 @@
$changeTierSteps = updateStepStatus($changeTierSteps, 2, false);
$changeTierSteps = updateStepStatus($changeTierSteps, 3, false);
}
+
+ onMount(() => {
+ //Select closest tier from starting one
+ if ($changeOrganizationTier.billingPlan === 'tier-2') {
+ $changeOrganizationTier.billingPlan = 'tier-1';
+ } else if ($changeOrganizationTier.billingPlan === 'tier-1') {
+ $changeOrganizationTier.billingPlan = 'tier-2';
+ } else if ($changeOrganizationTier.billingPlan === 'tier-0') {
+ $changeOrganizationTier.billingPlan = 'tier-1';
+ }
+ });