diff --git a/src/lib/components/emptyBucket.svelte b/src/lib/components/emptyBucket.svelte new file mode 100644 index 000000000..b3a420871 --- /dev/null +++ b/src/lib/components/emptyBucket.svelte @@ -0,0 +1,7 @@ + diff --git a/src/lib/components/index.ts b/src/lib/components/index.ts index c04df5d37..19350c38f 100644 --- a/src/lib/components/index.ts +++ b/src/lib/components/index.ts @@ -26,3 +26,4 @@ export { default as Alert } from './alert.svelte'; export { default as Box } from './box.svelte'; export { default as Search } from './search.svelte'; export { default as Bucket } from './bucket.svelte'; +export { default as EmptyBucket } from './emptyBucket.svelte'; diff --git a/src/routes/console/[project]/storage/index.svelte b/src/routes/console/[project]/storage/index.svelte index 5d892b362..8714a4b5d 100644 --- a/src/routes/console/[project]/storage/index.svelte +++ b/src/routes/console/[project]/storage/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, Tooltip, Copy, Bucket } from '$lib/components'; + import { Empty, Pagination, Tooltip, Copy, Bucket, EmptyBucket } from '$lib/components'; import { Pill } from '$lib/elements'; import type { Models } from '@aw-labs/appwrite-console'; import Create from './_create.svelte'; @@ -81,20 +81,16 @@ {/each} {#if $bucketList.total % 2 !== 0} -
-
-
-
- -
-
-

Add a new bucket

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

Add a new bucket

+
+ {/if}