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

@@ -3,6 +3,7 @@ import type { UploadAsset } from '../models/upload-asset';
function createUploadStore() {
const uploadAssets = writable<Array<UploadAsset>>([]);
const duplicateCounter = writable(0);
const { subscribe } = uploadAssets;
@@ -35,6 +36,7 @@ function createUploadStore() {
return {
subscribe,
duplicateCounter,
isUploading,
addNewUploadAsset,
updateProgress,