diff --git a/projects/rero/ng-core/src/lib/core.module.ts b/projects/rero/ng-core/src/lib/core.module.ts index 36583bd3..4c59034a 100644 --- a/projects/rero/ng-core/src/lib/core.module.ts +++ b/projects/rero/ng-core/src/lib/core.module.ts @@ -23,6 +23,7 @@ import { ModalModule } from 'ngx-bootstrap/modal'; import { NgxSpinnerModule } from 'ngx-spinner'; import { ToastrModule } from 'ngx-toastr'; import { DialogComponent } from './dialog/dialog.component'; +import { ErrorComponent } from './error/error.component'; import { CallbackArrayFilterPipe } from './pipe/callback-array-filter.pipe'; import { DefaultPipe } from './pipe/default.pipe'; import { Nl2brPipe } from './pipe/nl2br.pipe'; @@ -49,7 +50,8 @@ import { MenuComponent } from './widget/menu/menu.component'; MenuComponent, TranslateLanguagePipe, TextReadMoreComponent, - SortByKeysPipe + SortByKeysPipe, + ErrorComponent ], imports: [ CommonModule, @@ -80,6 +82,7 @@ import { MenuComponent } from './widget/menu/menu.component'; SearchInputComponent, MenuComponent, TextReadMoreComponent, + ErrorComponent, SortByKeysPipe, NgxSpinnerModule ], diff --git a/projects/rero/ng-core/src/lib/error/error.component.html b/projects/rero/ng-core/src/lib/error/error.component.html new file mode 100644 index 00000000..14d83e2f --- /dev/null +++ b/projects/rero/ng-core/src/lib/error/error.component.html @@ -0,0 +1,24 @@ + +
+ + {{ error.status }} + {{ error.title }} +
+