Enabling footer on about page

This commit is contained in:
softsimon committed 2023-05-05 01:49:11 +04:00
1 parent d40344aa92
commit e7ae9049bb
3 files changed
+5 -6

No files matched your search

@@ -1,4 +1,5 @@
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
import { Observable } from 'rxjs';
import { NavigationService } from '../../../services/navigation.service';
import { Env, StateService } from '../../../services/state.service';
@@ -12,6 +13,7 @@ export class GlobalFooterComponent implements OnInit {
env: Env;
networkPaths: { [network: string]: string };
officialMempoolSpace = this.stateService.env.OFFICIAL_MEMPOOL_SPACE;
networkPaths$: Observable<Record<string, string>>;
constructor(
public stateService: StateService,
@@ -20,9 +22,7 @@ export class GlobalFooterComponent implements OnInit {
ngOnInit(): void {
this.env = this.stateService.env;
this.navigationService.subnetPaths.subscribe((paths) => {
this.networkPaths = paths;
});
this.networkPaths$ = this.navigationService.subnetPaths;
}
}