🐛 Fix upload into trash when modal is closed (#850)

This commit is contained in:
Montassar Ghanmy
2025-03-12 09:37:45 +01:00
committed by GitHub
parent a635d53adf
commit b7d3fb73ce
@@ -297,6 +297,9 @@ class FileUploadService {
for (const rootKey of rootKeys) {
if (rootKey in this.groupIds) {
this.resetStates([rootKey]);
} else {
// remove from completed states
delete this.rootStates.completed[rootKey];
}
}
@@ -524,6 +527,10 @@ class FileUploadService {
this.groupIds = {};
this.notify();
// reset the states for next upload
this.resetStates(Object.keys(this.rootStates.completed));
this.notify();
}
public cancelRootUpload(id: string) {