Hide mining pools on clock blockchain
This commit is contained in:
		
							parent
							
								
									29bbb922c5
								
							
						
					
					
						commit
						b606282fb4
					
				| @ -56,7 +56,7 @@ | ||||
|               <app-time kind="since" [time]="block.timestamp" [fastRender]="true" [precision]="1" minUnit="minute"></app-time></div> | ||||
|           </ng-container> | ||||
|         </div> | ||||
|         <div class="animated" [class]="markHeight === block.height ? 'hide' : 'show'" *ngIf="block.extras?.pool != undefined"> | ||||
|         <div class="animated" [class]="markHeight === block.height ? 'hide' : 'show'" *ngIf="block.extras?.pool != undefined && showPools"> | ||||
|           <a [attr.data-cy]="'bitcoin-block-' + offset + '-index-' + i + '-pool'" class="badge badge-primary" | ||||
|             [routerLink]="[('/mining/pool/' + block.extras.pool.slug) | relativeUrl]"> | ||||
|             {{ block.extras.pool.name}}</a> | ||||
|  | ||||
| @ -27,6 +27,7 @@ export class BlockchainBlocksComponent implements OnInit, OnChanges, OnDestroy { | ||||
|   @Input() minimal: boolean = false; | ||||
|   @Input() blockWidth: number = 125; | ||||
|   @Input() spotlight: number = 0; | ||||
|   @Input() showPools: boolean = true; | ||||
|   @Input() getHref?: (index, block) => string = (index, block) => `/block/${block.id}`; | ||||
|    | ||||
|   specialBlocks = specialBlocks; | ||||
|  | ||||
| @ -16,6 +16,7 @@ | ||||
|           [minimal]="true" | ||||
|           [count]="blockchainBlocks" | ||||
|           [blockWidth]="blockWidth" | ||||
|           [showPools]="false" | ||||
|           [spotlight]="mode === 'mined' ? -index - 1 : 0" | ||||
|           [getHref]="getMinedUrl" | ||||
|         ></app-blockchain-blocks> | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user