mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
[ADF-5369] HTTP 500 response in adf-upload-button is emitted as a success event (#7087)
* [ADF-5369] HTTP 500 response in adf-upload-button is emitted as a success event * [ci:force] unit test fixed
This commit is contained in:
@@ -32,7 +32,8 @@ export class UploadFilesEvent {
|
||||
constructor(
|
||||
public files: Array<FileModel>,
|
||||
private uploadService: UploadService,
|
||||
private callback: EventEmitter<any>
|
||||
private successEmitter: EventEmitter<any>,
|
||||
private errorEmitter: EventEmitter<any>
|
||||
) {}
|
||||
|
||||
pauseUpload() {
|
||||
@@ -42,7 +43,7 @@ export class UploadFilesEvent {
|
||||
resumeUpload() {
|
||||
if (this.files && this.files.length > 0) {
|
||||
this.uploadService.addToQueue(...this.files);
|
||||
this.uploadService.uploadFilesInTheQueue(this.callback);
|
||||
this.uploadService.uploadFilesInTheQueue(this.successEmitter, this.errorEmitter);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user