mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-09 11:03:05 +00:00
[CST-4882] Show error message if the search query fails - Handle error 422 (invalid query) separately
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user