mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-10-29 17:40:28 +00:00
* Added stores to get album assetId * Upload assets and add to album * Added comments * resolve conflict when add assets from upload directly * Filtered out duplicate asset before adding to the album
14 lines
327 B
TypeScript
14 lines
327 B
TypeScript
import { writable } from 'svelte/store';
|
|
|
|
function createAlbumUploadStore() {
|
|
const albumUploadAsset = writable<Array<string>>([]);
|
|
const albumUploadAssetCount = writable<number>(9999);
|
|
|
|
return {
|
|
asset: albumUploadAsset,
|
|
count: albumUploadAssetCount
|
|
};
|
|
}
|
|
|
|
export const albumUploadAssetStore = createAlbumUploadStore();
|