Move TV button to /graphs/mempool graph page
				
					
				
			This commit is contained in:
		
							parent
							
								
									d8a1c0ac1b
								
							
						
					
					
						commit
						0c71e11cda
					
				| @ -44,9 +44,6 @@ | ||||
|       <li class="nav-item" routerLinkActive="active" id="btn-graphs"> | ||||
|         <a class="nav-link" [routerLink]="['/graphs' | relativeUrl]" (click)="collapse()"><fa-icon [icon]="['fas', 'chart-area']" [fixedWidth]="true" i18n-title="master-page.graphs" title="Graphs"></fa-icon></a> | ||||
|       </li> | ||||
|       <li class="nav-item d-none d-lg-block" routerLinkActive="active" id="btn-tv"> | ||||
|         <a class="nav-link" [routerLink]="['/tv' | relativeUrl]" (click)="collapse()"><fa-icon [icon]="['fas', 'tv']" [fixedWidth]="true" i18n-title="master-page.tvview" title="TV view"></fa-icon></a> | ||||
|       </li> | ||||
|       <li class="nav-item" routerLinkActive="active" id="btn-docs"> | ||||
|         <a class="nav-link" [routerLink]="['/docs' | relativeUrl ]" (click)="collapse()"><fa-icon [icon]="['fas', 'book']" [fixedWidth]="true" i18n-title="documentation.title" title="Documentation"></fa-icon></a> | ||||
|       </li> | ||||
|  | ||||
| @ -11,6 +11,13 @@ | ||||
| 
 | ||||
|           <form [formGroup]="radioGroupForm" class="formRadioGroup" | ||||
|             [class]="stateService.env.MINING_DASHBOARD ? 'mining' : ''" (click)="saveGraphPreference()"> | ||||
|             <div *ngIf="!isMobile()" class="btn-group btn-group-toggle"> | ||||
|               <label ngbButtonLabel class="btn-primary btn-sm mr-2"> | ||||
|                 <a [routerLink]="['/tv' | relativeUrl]" style="color: white"> | ||||
|                   <fa-icon [icon]="['fas', 'tv']" [fixedWidth]="true" i18n-title="master-page.tvview" title="TV view"></fa-icon> | ||||
|                 </a> | ||||
|                 </label> | ||||
|             </div> | ||||
|             <div class="btn-group btn-group-toggle" ngbRadioGroup name="radioBasic" formControlName="dateSpan"> | ||||
|               <label ngbButtonLabel class="btn-primary btn-sm"> | ||||
|                 <input ngbButton type="radio" [value]="'2h'" [routerLink]="['/graphs' | relativeUrl]" fragment="2h"> 2H | ||||
|  | ||||
| @ -210,4 +210,8 @@ export class StatisticsComponent implements OnInit { | ||||
|       this.incomingGraph.onSaveChart(this.timespan); | ||||
|     } | ||||
|   } | ||||
| 
 | ||||
|   isMobile() { | ||||
|     return (window.innerWidth <= 767.98); | ||||
|   } | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user