SUPPORT-8783: Fix
This commit is contained in:
parent
98674f6f81
commit
203f84916a
3 changed files with 5 additions and 9 deletions
|
|
@ -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();
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue