Hide tabs in /graphs page is mining not available
This commit is contained in:
		
							parent
							
								
									4ecacde10b
								
							
						
					
					
						commit
						92142cd531
					
				| @ -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> | ||||
|  | ||||
| @ -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 { | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user