feat: redesign dashboard, add lightbox bulk download, and standardize ui
This commit is contained in:
1 parent
8728308fc6
commit
4a9da65901
13 files changed
+923
-104
No files matched your search
@@ -11,6 +11,7 @@ type ThumbnailRouteContext = Readonly<{ params: Promise<{ assetId: string }> }>;
|
||||
type ThumbnailImmich = {
|
||||
listAlbumsForAsset(assetId: string): Promise<Array<{ id: string }>>;
|
||||
getAlbum(albumId: string): Promise<{ albumThumbnailAssetId: string | null }>;
|
||||
getAsset(assetId: string): Promise<{ albums: Array<{ id: string }> }>;
|
||||
getThumbnail(assetId: string): Promise<ImmichBinary>;
|
||||
};
|
||||
|
||||
@@ -83,7 +84,8 @@ async function isGrantedEditorialAsset(
|
||||
return false;
|
||||
}
|
||||
|
||||
const assetAlbums = await dependencies.immich.listAlbumsForAsset(assetId);
|
||||
const asset = await dependencies.immich.getAsset(assetId);
|
||||
const assetAlbums = asset.albums;
|
||||
const granted = new Set(grantedAlbumIds);
|
||||
return assetAlbums.some((album) => granted.has(album.id));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user