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) => {
|
router.events.subscribe((event) => {
|
||||||
if (event instanceof NavigationStart) {
|
if (event instanceof NavigationStart) {
|
||||||
this.isLanding = event.url == '/home-landing';
|
this.isLanding = event.url == '/home';
|
||||||
this.cd.markForCheck();
|
this.cd.markForCheck();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -14,15 +14,11 @@ export class HomeLandingComponent implements OnInit {
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
let url = this.appConfigService.getParamValue("cert_check_url")
|
let url = this.appConfigService.getParamValue("cert_check_url")
|
||||||
fetch(url)
|
fetch(url)
|
||||||
.then((response) => {
|
.then(() => {
|
||||||
if (!response.ok) {
|
|
||||||
document.getElementById("cert-check-info").hidden = false;
|
|
||||||
console.error("Server responded with status " + response.status);
|
|
||||||
}
|
|
||||||
document.getElementById("cert-check-info").hidden = true;
|
document.getElementById("cert-check-info").hidden = true;
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch((error) => {
|
||||||
document.getElementById("cert-check-info").hidden = false;
|
console.error("Error " + error);
|
||||||
})
|
})
|
||||||
.finally(() => this.cd.markForCheck());
|
.finally(() => this.cd.markForCheck());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ export class WebbpmComponent {
|
||||||
router.events.subscribe((event: Event) => {
|
router.events.subscribe((event: Event) => {
|
||||||
if (event instanceof NavigationStart) {
|
if (event instanceof NavigationStart) {
|
||||||
progressIndicationService.showProgressBar();
|
progressIndicationService.showProgressBar();
|
||||||
this.isLanding = event.url == '/home-landing';
|
this.isLanding = event.url == '/home';
|
||||||
this.cd.markForCheck();
|
this.cd.markForCheck();
|
||||||
}
|
}
|
||||||
else if (event instanceof NavigationEnd
|
else if (event instanceof NavigationEnd
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue