diff --git a/src/routes/console/[project]/databases/database/[database]/index.svelte b/src/routes/console/[project]/databases/database/[database]/index.svelte index 69bbea092..1c5e2e374 100644 --- a/src/routes/console/[project]/databases/database/[database]/index.svelte +++ b/src/routes/console/[project]/databases/database/[database]/index.svelte @@ -2,7 +2,7 @@ import { page } from '$app/stores'; import { goto } from '$app/navigation'; import { Button } from '$lib/elements/forms'; - import { Empty, Pagination, Copy, Bucket } from '$lib/components'; + import { Empty, EmptyBucket, Pagination, Copy, Bucket } from '$lib/components'; import { Pill } from '$lib/elements'; import type { Models } from '@aw-labs/appwrite-console'; import Create from './_create.svelte'; @@ -56,20 +56,16 @@ {/each} {#if $collections.total % 2 !== 0} -
-
-
-
- -
-
-

Create a new collection

-
-
+ (showCreate = true)}> +
+
-
+
+

Create a new collection

+
+ {/if} diff --git a/src/routes/console/[project]/databases/index.svelte b/src/routes/console/[project]/databases/index.svelte index 283586e3b..c6e86f116 100644 --- a/src/routes/console/[project]/databases/index.svelte +++ b/src/routes/console/[project]/databases/index.svelte @@ -2,7 +2,7 @@ import { page } from '$app/stores'; import { goto } from '$app/navigation'; import { Button } from '$lib/elements/forms'; - import { Empty, Pagination, Copy, Bucket } from '$lib/components'; + import { Empty, EmptyBucket, Pagination, Copy, Bucket } from '$lib/components'; import { Pill } from '$lib/elements'; import type { Models } from '@aw-labs/appwrite-console'; import Create from './_create.svelte'; @@ -47,20 +47,16 @@ {/each} {#if $databaseList.total % 2 !== 0} -
-
-
-
- -
-
-

Create a new database

-
-
+ (showCreate = true)}> +
+
-
+
+

Create a new database

+
+ {/if}