DEV: Minor in-progress-uploads refactor (#16430)

These calls were missed in ac672cfcc6
This commit is contained in:
Martin Brennan 2022-04-11 11:50:06 +10:00 committed by GitHub
parent cd02ea07fc
commit 6d2441041b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 12 deletions

View File

@ -72,10 +72,7 @@ export default Mixin.create(UppyS3Multipart, ExtendableUploader, {
}); });
this.set("allowMultipleFiles", this.fileInputEl.multiple); this.set("allowMultipleFiles", this.fileInputEl.multiple);
this.set("inProgressUploads", []); this.set("inProgressUploads", []);
this.appEvents.trigger( this._triggerInProgressUploadsEvent();
`upload-mixin:${this.id}:in-progress-uploads`,
this.inProgressUploads
);
this._bindFileInputChange(); this._bindFileInputChange();
@ -185,10 +182,7 @@ export default Mixin.create(UppyS3Multipart, ExtendableUploader, {
processing: false, processing: false,
}) })
); );
this.appEvents.trigger( this._triggerInProgressUploadsEvent();
`upload-mixin:${this.id}:in-progress-uploads`,
this.inProgressUploads
);
}); });
}); });
@ -475,10 +469,7 @@ export default Mixin.create(UppyS3Multipart, ExtendableUploader, {
"inProgressUploads", "inProgressUploads",
this.inProgressUploads.filter((upl) => upl.id !== fileId) this.inProgressUploads.filter((upl) => upl.id !== fileId)
); );
this.appEvents.trigger( this._triggerInProgressUploadsEvent();
`upload-mixin:${this.id}:in-progress-uploads`,
this.inProgressUploads
);
}, },
// target must be provided as a DOM element, however the // target must be provided as a DOM element, however the