Remove footer from bisq docs

This commit is contained in:
hunicus 2023-05-11 19:04:24 -04:00
parent 982f1e007a
commit 82a072bd87
No known key found for this signature in database
GPG Key ID: 24837C51B6D81FD9
2 changed files with 5 additions and 3 deletions

View File

@ -86,6 +86,6 @@
<router-outlet></router-outlet>
</main>
<app-global-footer></app-global-footer>
<app-global-footer *ngIf="footerVisible"></app-global-footer>
<br>

View File

@ -17,7 +17,7 @@ export class BisqMasterPageComponent implements OnInit {
isMobile = window.innerWidth <= 767.98;
urlLanguage: string;
networkPaths: { [network: string]: string };
footerVisible = false;
footerVisible = true;
constructor(
private stateService: StateService,
@ -32,7 +32,9 @@ export class BisqMasterPageComponent implements OnInit {
this.urlLanguage = this.languageService.getLanguageForUrl();
this.navigationService.subnetPaths.subscribe((paths) => {
this.networkPaths = paths;
if( paths.bisq === "" ) {
if (paths.mainnet.indexOf('docs') > -1) {
this.footerVisible = false;
} else {
this.footerVisible = true;
}
});