Merge pull request #1379 from mempool/nymkappa/bugfix/hide-mining-charts-non-bitcoin

Hide tabs in /graphs page is mining not available
This commit is contained in:
softsimon 2022-03-16 15:03:12 +01:00 committed by GitHub
commit 32f3acd2f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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"> <div class="d-inline-flex flex-wrap menu">
<li ngbNavItem class="menu-li"> <li ngbNavItem class="menu-li">
<a routerLinkActive="active" [routerLink]="['/graphs/mempool' | relativeUrl]" ngbNavLink>Mempool</a> <a routerLinkActive="active" [routerLink]="['/graphs/mempool' | relativeUrl]" ngbNavLink>Mempool</a>

View File

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