mirror of
https://github.com/immich-app/immich.git
synced 2025-12-23 17:25:11 +03:00
feat(web): manual stacking asset (#4650)
Co-authored-by: shalong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
@@ -222,6 +222,7 @@ export class AssetStore {
|
||||
}
|
||||
|
||||
bucket.assets = assets;
|
||||
|
||||
this.emit(true);
|
||||
} catch (error) {
|
||||
handleError(error, 'Failed to load assets');
|
||||
@@ -251,7 +252,7 @@ export class AssetStore {
|
||||
return scrollTimeline ? delta : 0;
|
||||
}
|
||||
|
||||
private addAsset(asset: AssetResponseDto): void {
|
||||
addAsset(asset: AssetResponseDto): void {
|
||||
if (
|
||||
this.assetToBucket[asset.id] ||
|
||||
this.options.userId ||
|
||||
|
||||
4
web/src/lib/stores/stacked-asset.store.ts
Normal file
4
web/src/lib/stores/stacked-asset.store.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import { writable } from 'svelte/store';
|
||||
import type { AssetResponseDto } from '../../api/open-api';
|
||||
|
||||
export const stackAssetsStore = writable<AssetResponseDto[]>([]);
|
||||
Reference in New Issue
Block a user