mempool/frontend/src/app/components/graphs/graphs.component.ts

26 lines
702 B
TypeScript
Raw Normal View History

import { Component, OnInit } from "@angular/core";
import { StateService } from "src/app/services/state.service";
import { WebsocketService } from "src/app/services/websocket.service";
@Component({
selector: 'app-graphs',
templateUrl: './graphs.component.html',
styleUrls: ['./graphs.component.scss'],
})
export class GraphsComponent implements OnInit {
2022-07-11 09:36:42 +02:00
padding = 'w-50';
constructor(
public stateService: StateService,
private websocketService: WebsocketService
) { }
ngOnInit(): void {
this.websocketService.want(['blocks']);
2022-07-11 09:36:42 +02:00
if (this.stateService.env.MINING_DASHBOARD === true && this.stateService.env.LIGHTNING === true) {
this.padding = 'w-33';
}
}
}