[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:
Dharan
2021-06-08 13:30:04 +05:30
committed by GitHub
parent acf4b26d74
commit 9a2a62255f
8 changed files with 190 additions and 50 deletions

View File

@@ -404,8 +404,8 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
});
}
openSnackMessageError(message: string) {
this.notificationService.showError(message);
openSnackMessageError(error: any) {
this.notificationService.showError(error.value || error);
}
openSnackMessageInfo(message: string) {