Show red banner when connection is lost with service 57/6957/2
authorychacon <yennifer.chacon@est.tech>
Thu, 28 Oct 2021 09:05:16 +0000 (11:05 +0200)
committerychacon <yennifer.chacon@est.tech>
Thu, 28 Oct 2021 09:14:19 +0000 (11:14 +0200)
Issue-ID: NONRTRIC-614
Signed-off-by: ychacon <yennifer.chacon@est.tech>
Change-Id: I6f05be633fc1c9a511c59ece2367588c68d79c67

webapp-frontend/src/app/interceptor.ts

index cade60d..afa4f0c 100644 (file)
@@ -34,8 +34,8 @@ export class HttpRequestInterceptor implements HttpInterceptor {
         return next.handle(request).pipe(
             catchError((error: HttpErrorResponse) => {
                 console.error("Error from error interceptor", error);
-                
-                if (!request.url.includes("info-jobs") && error.status != 404) {
+
+                if (!request.url.includes("info-jobs") || error.status != 404) {
                     // show dialog for error message
                     this.notificationService.error(error.message);
                 }