mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 21:19:41 -06:00
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:
parent
f70e6c302f
commit
7e5f52a163
@ -263,7 +263,10 @@ export default Mixin.create(ExtendableUploader, UppyS3Multipart, {
|
||||
});
|
||||
|
||||
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({
|
||||
fileName: file.name,
|
||||
id: file.id,
|
||||
|
Loading…
Reference in New Issue
Block a user