1
0
mirror of https://github.com/immich-app/immich.git synced 2025-06-17 03:47:45 +02:00

fix(web): show warning on duplicate uploads #2557 (#3613)

* fix(web): show warning on duplicate uploads #2557

* Prettier fix

* color

---------

Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
Russell Tan
2023-08-09 18:11:26 -07:00
committed by GitHub
parent 57a7103d75
commit 66b2ad7939
5 changed files with 33 additions and 1 deletions

View File

@ -151,6 +151,10 @@ async function fileUploader(
if (response.status == 200 || response.status == 201) {
const res: AssetFileUploadResponseDto = response.data;
if (res.duplicate) {
uploadAssetsStore.duplicateCounter.update((count) => count + 1);
}
if (albumId && res.id) {
await addAssetsToAlbum(albumId, [res.id], sharedKey);
}