Fixing titles.
This commit is contained in:
parent
bd89bf885d
commit
b6a113f05c
@ -1,6 +1,7 @@
|
|||||||
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
|
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { map, share } from 'rxjs/operators';
|
import { map, share } from 'rxjs/operators';
|
||||||
|
import { SeoService } from 'src/app/services/seo.service';
|
||||||
import { LightningApiService } from '../lightning-api.service';
|
import { LightningApiService } from '../lightning-api.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@ -16,9 +17,12 @@ export class LightningDashboardComponent implements OnInit {
|
|||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private lightningApiService: LightningApiService,
|
private lightningApiService: LightningApiService,
|
||||||
|
private seoService: SeoService,
|
||||||
) { }
|
) { }
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
|
this.seoService.setTitle($localize`Lightning Dashboard`);
|
||||||
|
|
||||||
const sharedObservable = this.lightningApiService.listTopNodes$().pipe(share());
|
const sharedObservable = this.lightningApiService.listTopNodes$().pipe(share());
|
||||||
|
|
||||||
this.nodesByCapacity$ = sharedObservable
|
this.nodesByCapacity$ = sharedObservable
|
||||||
|
@ -57,7 +57,6 @@ export class LightningStatisticsChartComponent implements OnInit {
|
|||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
let firstRun = true;
|
let firstRun = true;
|
||||||
|
|
||||||
this.seoService.setTitle($localize`:@@mining.hashrate-difficulty:Hashrate and Weight`);
|
|
||||||
this.miningWindowPreference = this.miningService.getDefaultTimespan('24h');
|
this.miningWindowPreference = this.miningService.getDefaultTimespan('24h');
|
||||||
this.radioGroupForm = this.formBuilder.group({ dateSpan: this.miningWindowPreference });
|
this.radioGroupForm = this.formBuilder.group({ dateSpan: this.miningWindowPreference });
|
||||||
this.radioGroupForm.controls.dateSpan.setValue(this.miningWindowPreference);
|
this.radioGroupForm.controls.dateSpan.setValue(this.miningWindowPreference);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user