🐛 Fix upload into trash when modal is closed (#850)
This commit is contained in:
@@ -297,6 +297,9 @@ class FileUploadService {
|
|||||||
for (const rootKey of rootKeys) {
|
for (const rootKey of rootKeys) {
|
||||||
if (rootKey in this.groupIds) {
|
if (rootKey in this.groupIds) {
|
||||||
this.resetStates([rootKey]);
|
this.resetStates([rootKey]);
|
||||||
|
} else {
|
||||||
|
// remove from completed states
|
||||||
|
delete this.rootStates.completed[rootKey];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -524,6 +527,10 @@ class FileUploadService {
|
|||||||
this.groupIds = {};
|
this.groupIds = {};
|
||||||
|
|
||||||
this.notify();
|
this.notify();
|
||||||
|
|
||||||
|
// reset the states for next upload
|
||||||
|
this.resetStates(Object.keys(this.rootStates.completed));
|
||||||
|
this.notify();
|
||||||
}
|
}
|
||||||
|
|
||||||
public cancelRootUpload(id: string) {
|
public cancelRootUpload(id: string) {
|
||||||
|
|||||||
Reference in New Issue
Block a user