[CST-4882] Show error message if the search query fails - Handle error 422 (invalid query) separately

This commit is contained in:
Davide Negretti
2021-11-26 11:20:35 +01:00
parent 6df1ee64f2
commit 7a567a47b9
6 changed files with 22 additions and 4 deletions

View File

@@ -3,6 +3,7 @@ import { Component, Input } from '@angular/core';
import { TranslateService } from '@ngx-translate/core';
import { Subscription } from 'rxjs';
import { AlertType } from '../alert/aletr-type';
@Component({
selector: 'ds-error',
@@ -13,6 +14,12 @@ export class ErrorComponent {
@Input() message = 'Error...';
/**
* The AlertType enumeration
* @type {AlertType}
*/
public AlertTypeEnum = AlertType;
private subscription: Subscription;
constructor(private translate: TranslateService) {