feat(web): manual stacking asset (#4650)

Co-authored-by: shalong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
Alex
2023-10-27 15:34:01 -05:00
committed by GitHub
parent 72dcde9e0f
commit 8b5b6d0821
22 changed files with 437 additions and 82 deletions

View File

@@ -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 ||

View File

@@ -0,0 +1,4 @@
import { writable } from 'svelte/store';
import type { AssetResponseDto } from '../../api/open-api';
export const stackAssetsStore = writable<AssetResponseDto[]>([]);