DEV: Use pushObject for inProgressUploads in uppy (#15134)

The inProgressUploads is meant to be used to display these uploads
in a UI, and Ember will only update the array in the UI if pushObject
is used to notify it.
This commit is contained in:
Martin Brennan 2021-11-30 10:42:45 +10:00 committed by GitHub
parent f70e6c302f
commit 7e5f52a163
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -263,7 +263,10 @@ export default Mixin.create(ExtendableUploader, UppyS3Multipart, {
}); });
files.forEach((file) => { files.forEach((file) => {
this.inProgressUploads.push( // The inProgressUploads is meant to be used to display these uploads
// in a UI, and Ember will only update the array in the UI if pushObject
// is used to notify it.
this.inProgressUploads.pushObject(
EmberObject.create({ EmberObject.create({
fileName: file.name, fileName: file.name,
id: file.id, id: file.id,