mirror of
https://github.com/immich-app/immich.git
synced 2025-12-22 09:15:34 +03:00
14 lines
289 B
TypeScript
14 lines
289 B
TypeScript
|
|
import { writable, derived } from 'svelte/store';
|
||
|
|
|
||
|
|
export const downloadAssets = writable<Record<string, number>>({});
|
||
|
|
|
||
|
|
|
||
|
|
export const isDownloading = derived(downloadAssets, ($downloadAssets) => {
|
||
|
|
if (Object.keys($downloadAssets).length == 0) {
|
||
|
|
return false;
|
||
|
|
}
|
||
|
|
|
||
|
|
return true;
|
||
|
|
})
|
||
|
|
|