mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
feat: add empty buckets
This commit is contained in:
1 parent
58eb5be8b7
commit
57f151ffc1
2 files changed
+20
-28
No files matched your search
@@ -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 @@
|
||||
</Bucket>
|
||||
{/each}
|
||||
{#if $collections.total % 2 !== 0}
|
||||
<article class="card is-border-dashed">
|
||||
<div class="bucket">
|
||||
<div class="u-flex u-flex-vertical u-cross-center">
|
||||
<div class="common-section">
|
||||
<Button secondary round on:click={() => (showCreate = true)}>
|
||||
<i class="icon-plus" />
|
||||
</Button>
|
||||
</div>
|
||||
<div class="common-section">
|
||||
<p>Create a new collection</p>
|
||||
</div>
|
||||
</div>
|
||||
<EmptyBucket on:click={() => (showCreate = true)}>
|
||||
<div class="common-section">
|
||||
<Button secondary round>
|
||||
<i class="icon-plus" />
|
||||
</Button>
|
||||
</div>
|
||||
</article>
|
||||
<div class="common-section">
|
||||
<p>Create a new collection</p>
|
||||
</div>
|
||||
</EmptyBucket>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
||||
@@ -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 @@
|
||||
</Bucket>
|
||||
{/each}
|
||||
{#if $databaseList.total % 2 !== 0}
|
||||
<article class="card is-border-dashed">
|
||||
<div class="bucket">
|
||||
<div class="u-flex u-flex-vertical u-cross-center">
|
||||
<div class="common-section">
|
||||
<Button secondary round on:click={() => (showCreate = true)}>
|
||||
<i class="icon-plus" />
|
||||
</Button>
|
||||
</div>
|
||||
<div class="common-section">
|
||||
<p>Create a new database</p>
|
||||
</div>
|
||||
</div>
|
||||
<EmptyBucket on:click={() => (showCreate = true)}>
|
||||
<div class="common-section">
|
||||
<Button secondary round>
|
||||
<i class="icon-plus" />
|
||||
</Button>
|
||||
</div>
|
||||
</article>
|
||||
<div class="common-section">
|
||||
<p>Create a new database</p>
|
||||
</div>
|
||||
</EmptyBucket>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
||||
Reference in new issue
Block a user