mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-12-08 20:29:05 +00:00
feat(web): manual stacking asset (#4650)
Co-authored-by: shalong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
@@ -201,7 +201,7 @@ export class AssetService {
|
||||
await this.timeBucketChecks(authUser, dto);
|
||||
const assets = await this.assetRepository.getByTimeBucket(dto.timeBucket, dto);
|
||||
if (authUser.isShowMetadata) {
|
||||
return assets.map((asset) => mapAsset(asset));
|
||||
return assets.map((asset) => mapAsset(asset, { withStack: true }));
|
||||
} else {
|
||||
return assets.map((asset) => mapAsset(asset, { stripMetadata: true }));
|
||||
}
|
||||
|
||||
@@ -33,6 +33,11 @@ export class TimeBucketDto {
|
||||
@IsBoolean()
|
||||
@Transform(toBoolean)
|
||||
isTrashed?: boolean;
|
||||
|
||||
@Optional()
|
||||
@IsBoolean()
|
||||
@Transform(toBoolean)
|
||||
withStacked?: boolean;
|
||||
}
|
||||
|
||||
export class TimeBucketAssetDto extends TimeBucketDto {
|
||||
|
||||
@@ -65,6 +65,7 @@ export interface TimeBucketOptions {
|
||||
albumId?: string;
|
||||
personId?: string;
|
||||
userId?: string;
|
||||
withStacked?: boolean;
|
||||
}
|
||||
|
||||
export interface TimeBucketItem {
|
||||
|
||||
Reference in New Issue
Block a user