mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +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:
@@ -126,14 +126,15 @@ export abstract class UploadBase implements OnInit, OnDestroy {
|
||||
const event = new UploadFilesEvent(
|
||||
[...filteredFiles],
|
||||
this.uploadService,
|
||||
this.success
|
||||
this.success,
|
||||
this.error
|
||||
);
|
||||
this.beginUpload.emit(event);
|
||||
|
||||
if (!event.defaultPrevented) {
|
||||
if (filteredFiles.length > 0) {
|
||||
this.uploadService.addToQueue(...filteredFiles);
|
||||
this.uploadService.uploadFilesInTheQueue(this.success);
|
||||
this.uploadService.uploadFilesInTheQueue(this.success, this.error);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user