diff --git a/src/routes/console/[project]/storage/index.svelte b/src/routes/console/[project]/storage/index.svelte index 567b6d069..acdf39fec 100644 --- a/src/routes/console/[project]/storage/index.svelte +++ b/src/routes/console/[project]/storage/index.svelte @@ -2,13 +2,12 @@ import { page } from '$app/stores'; import { goto } from '$app/navigation'; import { Button } from '$lib/elements/forms'; - import { Empty, Pagination, Tiles, Tooltip } from '$lib/components'; + import { Empty, Pagination, Tooltip, Copy } from '$lib/components'; import { Pill } from '$lib/elements'; import type { Models } from '@aw-labs/appwrite-console'; import Create from './_create.svelte'; import { Container } from '$lib/layout'; import { base } from '$app/paths'; - import { addNotification } from '$lib/stores/notifications'; import { bucketList } from './store'; let showCreate = false; @@ -24,23 +23,6 @@ $: bucketList.load(search, limit, offset ?? 0); $: if (search) offset = 0; - - const copy = async (event: Event, value: string) => { - event.preventDefault(); - event.stopPropagation(); - try { - await navigator.clipboard.writeText(value); - addNotification({ - message: 'Copied to clipboard.', - type: 'success' - }); - } catch (error) { - addNotification({ - message: error.message, - type: 'error' - }); - } - }; @@ -53,7 +35,7 @@ {#if $bucketList.response?.total} - +
{#each $bucketList.response.buckets as bucket}
@@ -64,10 +46,10 @@

{bucket.name}