From: ychacon Date: Thu, 28 Oct 2021 09:05:16 +0000 (+0200) Subject: Show red banner when connection is lost with service X-Git-Tag: 2.3.0~1 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=b06b95d7f0990ee3364b3d7833a22a933241e94b;p=portal%2Fnonrtric-controlpanel.git Show red banner when connection is lost with service Issue-ID: NONRTRIC-614 Signed-off-by: ychacon Change-Id: I6f05be633fc1c9a511c59ece2367588c68d79c67 --- 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); }