From 57f151ffc1834c68dd5936cfe7a985072e91f997 Mon Sep 17 00:00:00 2001 From: Arman Date: Tue, 2 Aug 2022 11:01:00 +0200 Subject: [PATCH] feat: add empty buckets --- .../database/[database]/index.svelte | 24 ++++++++----------- .../console/[project]/databases/index.svelte | 24 ++++++++----------- 2 files changed, 20 insertions(+), 28 deletions(-) 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}