mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
#135 Called observer.next to force the progressbar refresh
This commit is contained in:
@@ -136,7 +136,9 @@ export class UploadService {
|
||||
let uploadingFileModel = new FileModel(file);
|
||||
latestFilesAdded.push(uploadingFileModel);
|
||||
this._queue.push(uploadingFileModel);
|
||||
this._filesUploadObserver.next(this._queue);
|
||||
if (this._filesUploadObserver) {
|
||||
this._filesUploadObserver.next(this._queue);
|
||||
}
|
||||
}
|
||||
}
|
||||
return latestFilesAdded;
|
||||
@@ -169,6 +171,9 @@ export class UploadService {
|
||||
loaded: e.loaded,
|
||||
percent: percent
|
||||
});
|
||||
if (this._filesUploadObserver) {
|
||||
this._filesUploadObserver.next(this._queue);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user