mirror of
https://github.com/immich-app/immich.git
synced 2025-05-24 02:13:51 -04:00
Merge b59f0ba5a76bc8c07c3b44ef4e23d820c262c8c3 into b0bcc6c03ecedff0d756a0e54352586672cea761
This commit is contained in:
commit
9e11bb3196
@ -242,6 +242,7 @@ class AlbumViewerPage extends HookConsumerWidget {
|
||||
),
|
||||
onRemoveFromAlbum: onRemoveFromAlbumPressed,
|
||||
editEnabled: data.ownerId == userId,
|
||||
stackEnabled: data.ownerId == userId,
|
||||
),
|
||||
),
|
||||
AnimatedPositioned(
|
||||
|
@ -185,7 +185,7 @@ export const mapAlbum = (entity: AlbumEntity, withAssets: boolean, auth?: AuthDt
|
||||
hasSharedLink,
|
||||
startDate,
|
||||
endDate,
|
||||
assets: (withAssets ? assets : []).map((asset) => mapAsset(asset, { auth })),
|
||||
assets: (withAssets ? assets : []).map((asset) => mapAsset(asset, { auth, withStack: true })),
|
||||
assetCount: entity.assets?.length || 0,
|
||||
isActivityEnabled: entity.isActivityEnabled,
|
||||
order: entity.order,
|
||||
|
@ -46,6 +46,7 @@ export class AlbumRepository implements IAlbumRepository {
|
||||
if (options.withAssets) {
|
||||
relations.assets = {
|
||||
exifInfo: true,
|
||||
stack: { assets: true },
|
||||
};
|
||||
|
||||
order.assets = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user