Hide tabs in /graphs page is mining not available

This commit is contained in:
nymkappa 2022-03-16 14:48:37 +01:00
parent 4ecacde10b
commit 92142cd531
No known key found for this signature in database
GPG Key ID: E155910B16E8BD04
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
<ul ngbNav #nav="ngbNav" class="nav-pills mb-3" style="padding: 0px 35px">
<ul ngbNav #nav="ngbNav" class="nav-pills mb-3" style="padding: 0px 35px" *ngIf="stateService.env.MINING_DASHBOARD">
<div class="d-inline-flex flex-wrap menu">
<li ngbNavItem class="menu-li">
<a routerLinkActive="active" [routerLink]="['/graphs/mempool' | relativeUrl]" ngbNavLink>Mempool</a>

View File

@ -1,4 +1,5 @@
import { Component, OnInit } from "@angular/core";
import { StateService } from "src/app/services/state.service";
@Component({
selector: 'app-graphs',
@ -6,7 +7,7 @@ import { Component, OnInit } from "@angular/core";
styleUrls: ['./graphs.component.scss'],
})
export class GraphsComponent implements OnInit {
constructor() { }
constructor(public stateService: StateService) { }
ngOnInit(): void {