Show red banner when connection is lost with service
[portal/nonrtric-controlpanel.git] / 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);
                 }