Global footer fixes
This commit is contained in:
5 files changed
+20
-20
No files matched your search
@@ -1,6 +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';
|
||||
import { IBackendInfo } from '../../../interfaces/websocket.interface';
|
||||
|
||||
@@ -14,19 +13,16 @@ export class GlobalFooterComponent implements OnInit {
|
||||
env: Env;
|
||||
networkPaths: { [network: string]: string };
|
||||
officialMempoolSpace = this.stateService.env.OFFICIAL_MEMPOOL_SPACE;
|
||||
networkPaths$: Observable<Record<string, string>>;
|
||||
backendInfo$: Observable<IBackendInfo>;
|
||||
frontendGitCommitHash = this.stateService.env.GIT_COMMIT_HASH;
|
||||
packetJsonVersion = this.stateService.env.PACKAGE_JSON_VERSION;
|
||||
|
||||
constructor(
|
||||
public stateService: StateService,
|
||||
private navigationService: NavigationService,
|
||||
) {}
|
||||
|
||||
ngOnInit(): void {
|
||||
this.env = this.stateService.env;
|
||||
this.networkPaths$ = this.navigationService.subnetPaths;
|
||||
this.backendInfo$ = this.stateService.backendInfo$;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user