refactor(web): albums list (2) (#8214)

* refactor: albums list

* fix: responsive design

* keep albums in sharing
This commit is contained in:
martin
2024-03-24 19:07:20 +01:00
committed by GitHub
parent 96a5710932
commit 5dc59b591d
7 changed files with 102 additions and 23 deletions
+1 -1
View File
@@ -13,5 +13,5 @@
<div class="flex place-items-center gap-2" slot="buttons">
<AlbumsControls bind:searchAlbum />
</div>
<Albums albums={data.albums} {searchAlbum} />
<Albums ownedAlbums={data.albums} {searchAlbum} sharedAlbums={data.sharedAlbums} />
</UserPageLayout>
+2
View File
@@ -4,10 +4,12 @@ import type { PageLoad } from './$types';
export const load = (async () => {
await authenticate();
const sharedAlbums = await getAllAlbums({ shared: true });
const albums = await getAllAlbums({});
return {
albums,
sharedAlbums,
meta: {
title: 'Albums',
},