From b06b95d7f0990ee3364b3d7833a22a933241e94b Mon Sep 17 00:00:00 2001 From: ychacon Date: Thu, 28 Oct 2021 11:05:16 +0200 Subject: [PATCH] Show red banner when connection is lost with service Issue-ID: NONRTRIC-614 Signed-off-by: ychacon Change-Id: I6f05be633fc1c9a511c59ece2367588c68d79c67 --- webapp-frontend/src/app/interceptor.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp-frontend/src/app/interceptor.ts b/webapp-frontend/src/app/interceptor.ts index cade60d..afa4f0c 100644 --- a/webapp-frontend/src/app/interceptor.ts +++ b/webapp-frontend/src/app/interceptor.ts @@ -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); } -- 2.16.6