Merge pull request #498 from ente-io/master

release
This commit is contained in:
Abhinav Kumar 2022-04-26 16:35:38 +05:30 committed by GitHub
commit 00414a15db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,7 +86,9 @@ class ImportService {
type: DESKTOP_UPLOAD_TYPE.FILES | DESKTOP_UPLOAD_TYPE.ZIPS,
filePaths: string[]
) {
this.ElectronAPIs.setToUploadFiles(type, filePaths);
if (this.allElectronAPIsExist) {
this.ElectronAPIs.setToUploadFiles(type, filePaths);
}
}
updatePendingUploads(files: FileWithCollection[]) {
@ -114,9 +116,11 @@ class ImportService {
}
}
cancelRemainingUploads() {
this.ElectronAPIs.setToUploadCollection(null);
this.ElectronAPIs.setToUploadFiles(DESKTOP_UPLOAD_TYPE.ZIPS, []);
this.ElectronAPIs.setToUploadFiles(DESKTOP_UPLOAD_TYPE.FILES, []);
if (this.allElectronAPIsExist) {
this.ElectronAPIs.setToUploadCollection(null);
this.ElectronAPIs.setToUploadFiles(DESKTOP_UPLOAD_TYPE.ZIPS, []);
this.ElectronAPIs.setToUploadFiles(DESKTOP_UPLOAD_TYPE.FILES, []);
}
}
}