diff --git a/src/routes/console/[project]/storage/index.svelte b/src/routes/console/[project]/storage/index.svelte index 16dfa0a43..6ad3c99bf 100644 --- a/src/routes/console/[project]/storage/index.svelte +++ b/src/routes/console/[project]/storage/index.svelte @@ -10,6 +10,7 @@ import { Container } from '$lib/layout'; import { base } from '$app/paths'; import { addNotification } from '$lib/stores/notifications'; + import { bucketList } from './store'; let showCreate = false; let search = ''; @@ -22,7 +23,7 @@ await goto(`${base}/console/${project}/storage/bucket/${event.detail.$id}`); }; - $: request = sdkForProject.storage.listBuckets(search, limit, offset); + $: bucketList.load(search, limit, offset ?? 0); $: if (search) offset = 0; const copy = async (value: string) => { @@ -49,83 +50,78 @@ Add Bucket - {#await request} -
- {:then response} - {#if response.total} -Total results: {response.total}
-