mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +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);
|
let uploadingFileModel = new FileModel(file);
|
||||||
latestFilesAdded.push(uploadingFileModel);
|
latestFilesAdded.push(uploadingFileModel);
|
||||||
this._queue.push(uploadingFileModel);
|
this._queue.push(uploadingFileModel);
|
||||||
this._filesUploadObserver.next(this._queue);
|
if (this._filesUploadObserver) {
|
||||||
|
this._filesUploadObserver.next(this._queue);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return latestFilesAdded;
|
return latestFilesAdded;
|
||||||
@@ -169,6 +171,9 @@ export class UploadService {
|
|||||||
loaded: e.loaded,
|
loaded: e.loaded,
|
||||||
percent: percent
|
percent: percent
|
||||||
});
|
});
|
||||||
|
if (this._filesUploadObserver) {
|
||||||
|
this._filesUploadObserver.next(this._queue);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user