diff --git a/src/frontend/app/administration/connection/ldap/check-connection.component.ts b/src/frontend/app/administration/connection/ldap/check-connection.component.ts index b51a57fa567d75fbcd6b09f1ed382caf4fe9be1e..956d11a21c3777e8f67c9f7289f2b993421944cc 100644 --- a/src/frontend/app/administration/connection/ldap/check-connection.component.ts +++ b/src/frontend/app/administration/connection/ldap/check-connection.component.ts @@ -69,6 +69,7 @@ export class CheckConnectionComponent implements OnInit { }), finalize(() => this.loadingTest = false), catchError((err: any) => { + this.notificationService.handleErrors(err); return of(false); }) ).subscribe(); @@ -87,6 +88,7 @@ export class CheckConnectionComponent implements OnInit { }), finalize(() => this.loadingTest = false), catchError((err: any) => { + this.notificationService.handleErrors(err); return of(false); }) ).subscribe(); diff --git a/src/frontend/app/document/document.component.ts b/src/frontend/app/document/document.component.ts index 843304d6bf2ec5b3d2f52a7aadc0c80fedc13793..2fb0f0b8a4d775134965399bd38d785a0c76d700 100755 --- a/src/frontend/app/document/document.component.ts +++ b/src/frontend/app/document/document.component.ts @@ -391,6 +391,7 @@ export class DocumentComponent implements OnInit { setTimeout(() => { this.load.dismiss(); }, 200); + this.notificationService.handleErrors(err); this.router.navigate(['/home']); return of(false); }) @@ -434,6 +435,7 @@ export class DocumentComponent implements OnInit { }), catchError((err: any) => { this.load.dismiss(); + this.notificationService.handleErrors(err); this.router.navigate(['/home']); return of(false); }) @@ -445,6 +447,7 @@ export class DocumentComponent implements OnInit { }), catchError((err: any) => { this.load.dismiss(); + this.notificationService.handleErrors(err); this.router.navigate(['/home']); return of(false); }) diff --git a/src/frontend/app/service/auth-interceptor.service.ts b/src/frontend/app/service/auth-interceptor.service.ts index fa95a3566808258869ce869d8b6da8403ad1ad45..4ee847673dd92433520334c086a1779a3ece9235 100644 --- a/src/frontend/app/service/auth-interceptor.service.ts +++ b/src/frontend/app/service/auth-interceptor.service.ts @@ -79,7 +79,6 @@ export class AuthInterceptor implements HttpInterceptor { catchError(err => { // Disconnect user if bad token process if (err.status === 401) { - this.notificationService.handleErrors(err); this.logout(); return EMPTY; } @@ -91,7 +90,6 @@ export class AuthInterceptor implements HttpInterceptor { catchError(err => { // Disconnect user if bad token process if (err.status === 401) { - this.notificationService.handleErrors(err); this.logout(); } return EMPTY; @@ -118,7 +116,6 @@ export class AuthInterceptor implements HttpInterceptor { } }); } - this.notificationService.handleErrors(error); const response = new HttpErrorResponse({ error: error.error, status: error.status,