Merge pull request #1207 from nymkappa/feature/fix-mining-pool-page-title
Set proper mining pool page title - Rename "Name" to "Pool"
This commit is contained in:
		
						commit
						75e9592d5b
					
				@ -48,7 +48,7 @@
 | 
			
		||||
      <tr>
 | 
			
		||||
        <th class="d-none d-md-block" i18n="mining.rank">Rank</th>
 | 
			
		||||
        <th class=""></th>
 | 
			
		||||
        <th class="" i18n="mining.pool-name">Name</th>
 | 
			
		||||
        <th class="" i18n="mining.pool-name">Pool</th>
 | 
			
		||||
        <th class="" *ngIf="this.poolsWindowPreference === '24h'" i18n="mining.hashrate">Hashrate</th>
 | 
			
		||||
        <th class="" i18n="master-page.blocks">Blocks</th>
 | 
			
		||||
        <th class="d-none d-md-block" i18n="mining.empty-blocks">Empty Blocks</th>
 | 
			
		||||
 | 
			
		||||
@ -4,6 +4,7 @@ import { EChartsOption } from 'echarts';
 | 
			
		||||
import { combineLatest, Observable, of } from 'rxjs';
 | 
			
		||||
import { catchError, map, share, skip, startWith, switchMap, tap } from 'rxjs/operators';
 | 
			
		||||
import { SinglePoolStats } from 'src/app/interfaces/node-api.interface';
 | 
			
		||||
import { SeoService } from 'src/app/services/seo.service';
 | 
			
		||||
import { StorageService } from '../..//services/storage.service';
 | 
			
		||||
import { MiningService, MiningStats } from '../../services/mining.service';
 | 
			
		||||
import { StateService } from '../../services/state.service';
 | 
			
		||||
@ -38,7 +39,9 @@ export class PoolRankingComponent implements OnInit, OnDestroy {
 | 
			
		||||
    private storageService: StorageService,
 | 
			
		||||
    private formBuilder: FormBuilder,
 | 
			
		||||
    private miningService: MiningService,
 | 
			
		||||
    private seoService: SeoService,
 | 
			
		||||
  ) {
 | 
			
		||||
    this.seoService.setTitle($localize`:@@mining.mining-pools:Mining Pools`);
 | 
			
		||||
    this.poolsWindowPreference = this.storageService.getValue('poolsWindowPreference') ? this.storageService.getValue('poolsWindowPreference') : '1w';
 | 
			
		||||
    this.radioGroupForm = this.formBuilder.group({ dateSpan: this.poolsWindowPreference });
 | 
			
		||||
    this.radioGroupForm.controls.dateSpan.setValue(this.poolsWindowPreference);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user