mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
feat(web): show download size (#3270)
* feat(web): show download size * chore: never over 100% * chore: use percentage * fix: unselect assets before download finishes
This commit is contained in:
parent
81e07fda08
commit
382341f550
7 changed files with 99 additions and 42 deletions
|
|
@ -14,12 +14,13 @@
|
|||
const handleDownloadFiles = async () => {
|
||||
const assets = Array.from(getAssets());
|
||||
if (assets.length === 1) {
|
||||
await downloadFile(assets[0], sharedLinkKey);
|
||||
clearSelect();
|
||||
await downloadFile(assets[0], sharedLinkKey);
|
||||
return;
|
||||
}
|
||||
|
||||
await downloadArchive(filename, { assetIds: assets.map((asset) => asset.id) }, clearSelect, sharedLinkKey);
|
||||
clearSelect();
|
||||
await downloadArchive(filename, { assetIds: assets.map((asset) => asset.id) }, sharedLinkKey);
|
||||
};
|
||||
</script>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue