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