diff --git a/ui/src/app/app.module.ts b/ui/src/app/app.module.ts index fd7d0bdcc..9c26e2321 100644 --- a/ui/src/app/app.module.ts +++ b/ui/src/app/app.module.ts @@ -24,6 +24,8 @@ import { UserModule } from './user/user.module' imports: [ BrowserModule, UserModule, + AccountModule, + HomeModule, HttpClientModule, AppRoutingModule, NgxWebstorageModule.forRoot(), diff --git a/ui/src/app/error/model/error.model.ts b/ui/src/app/error/model/error.model.ts index 77825e9f1..bcacc6109 100644 --- a/ui/src/app/error/model/error.model.ts +++ b/ui/src/app/error/model/error.model.ts @@ -1,8 +1,7 @@ export class AppError { constructor( public statusCode: number, - public message: string, - public i18nKey: string | null + public message: string ) {} } diff --git a/ui/src/app/error/service/error.service.ts b/ui/src/app/error/service/error.service.ts index 3dc380e1b..ff2151492 100644 --- a/ui/src/app/error/service/error.service.ts +++ b/ui/src/app/error/service/error.service.ts @@ -12,12 +12,7 @@ export class ErrorService implements ErrorHandler { handleError(error: any) { if (error instanceof HttpErrorResponse) { - if (error.headers.has('errmmmmm')) { - const i18nKey: string | null = error.headers.get('errmmmmm') - this.errors.next(new AppError(error.status, error.message, i18nKey)) - } else { - this.errors.next(new AppError(error.status, error.message, null)) - } + this.errors.next(new AppError(error.status, error.message)) } else { console.error('Unknown error occurred', error) } diff --git a/ui/src/app/shared/alert/alert.component.html b/ui/src/app/shared/alert/alert.component.html new file mode 100644 index 000000000..674692383 --- /dev/null +++ b/ui/src/app/shared/alert/alert.component.html @@ -0,0 +1,19 @@ +
Sorry, an error has occurred
+ + + +- - | -{{user.email}} | -{{user.firstName}} | -{{user.lastName}} | -- {{user.mainContact}} - - - | -{{user.memberName}} | -{{user.memberName}} | -- {{user.activated}} - - - | - -
-
-
-
-
-
- |
-
{{ itemCount }}
-{{ itemCount }}
+