From 203f84916a3eb4950c53b341c0d418ae0e8aa88f Mon Sep 17 00:00:00 2001 From: Eduard Tihomirov Date: Fri, 24 Jan 2025 17:13:06 +0300 Subject: [PATCH] SUPPORT-8783: Fix --- .../ts/modules/app/component/app-header.component.ts | 2 +- .../ts/modules/app/component/home-landing.component.ts | 10 +++------- .../ts/modules/webbpm/component/webbpm.component.ts | 2 +- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/frontend/src/ts/modules/app/component/app-header.component.ts b/frontend/src/ts/modules/app/component/app-header.component.ts index 6b0dcf3..f875cc5 100644 --- a/frontend/src/ts/modules/app/component/app-header.component.ts +++ b/frontend/src/ts/modules/app/component/app-header.component.ts @@ -22,7 +22,7 @@ export class AppHeaderComponent { } router.events.subscribe((event) => { if (event instanceof NavigationStart) { - this.isLanding = event.url == '/home-landing'; + this.isLanding = event.url == '/home'; this.cd.markForCheck(); } }) diff --git a/frontend/src/ts/modules/app/component/home-landing.component.ts b/frontend/src/ts/modules/app/component/home-landing.component.ts index 943d8f5..0a846f5 100644 --- a/frontend/src/ts/modules/app/component/home-landing.component.ts +++ b/frontend/src/ts/modules/app/component/home-landing.component.ts @@ -14,15 +14,11 @@ export class HomeLandingComponent implements OnInit { ngOnInit(): void { let url = this.appConfigService.getParamValue("cert_check_url") fetch(url) - .then((response) => { - if (!response.ok) { - document.getElementById("cert-check-info").hidden = false; - console.error("Server responded with status " + response.status); - } + .then(() => { document.getElementById("cert-check-info").hidden = true; }) - .catch(() => { - document.getElementById("cert-check-info").hidden = false; + .catch((error) => { + console.error("Error " + error); }) .finally(() => this.cd.markForCheck()); } diff --git a/frontend/src/ts/modules/webbpm/component/webbpm.component.ts b/frontend/src/ts/modules/webbpm/component/webbpm.component.ts index e3624b6..fd7e122 100644 --- a/frontend/src/ts/modules/webbpm/component/webbpm.component.ts +++ b/frontend/src/ts/modules/webbpm/component/webbpm.component.ts @@ -25,7 +25,7 @@ export class WebbpmComponent { router.events.subscribe((event: Event) => { if (event instanceof NavigationStart) { progressIndicationService.showProgressBar(); - this.isLanding = event.url == '/home-landing'; + this.isLanding = event.url == '/home'; this.cd.markForCheck(); } else if (event instanceof NavigationEnd