Renamed the electrs backend support to 'electrs'.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title">Fee distribution for block
|
||||
<a *ngIf="!isEsploraEnabled" href="https://www.blockstream.info/block-height/{{ block.height }}" target="_blank">#{{ block.height }}</a>
|
||||
<a *ngIf="isEsploraEnabled" (click)="activeModal.dismiss()" [routerLink]="['/explorer/block/', block.hash]">#{{ block.height }}</a>
|
||||
<a *ngIf="!isElectrsEnabled" href="https://www.blockstream.info/block-height/{{ block.height }}" target="_blank">#{{ block.height }}</a>
|
||||
<a *ngIf="isElectrsEnabled" (click)="activeModal.dismiss()" [routerLink]="['/explorer/block/', block.hash]">#{{ block.height }}</a>
|
||||
</h4>
|
||||
<button type="button" class="close" aria-label="Close" (click)="activeModal.dismiss('Cross click')">
|
||||
<span aria-hidden="true">×</span>
|
||||
|
||||
@@ -12,7 +12,7 @@ import { environment } from '../../../environments/environment';
|
||||
export class BlockModalComponent implements OnInit {
|
||||
@Input() block: IBlock;
|
||||
blockSubsidy = 50;
|
||||
isEsploraEnabled = !!environment.esplora;
|
||||
isElectrsEnabled = !!environment.electrs;
|
||||
conversions: any;
|
||||
|
||||
constructor(
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
<div *ngFor="let block of blocks; let i = index; trackBy: trackByBlocksFn" >
|
||||
<div (click)="openBlockModal(block);" class="text-center bitcoin-block mined-block" id="bitcoin-block-{{ block.height }}" [ngStyle]="getStyleForBlock(block)">
|
||||
<div class="block-height">
|
||||
<a *ngIf="!isEsploraEnabled" href="https://www.blockstream.info/block-height/{{ block.height }}" target="_blank">#{{ block.height }}</a>
|
||||
<a *ngIf="isEsploraEnabled" [routerLink]="['/explorer/block/', block.hash]">#{{ block.height }}</a>
|
||||
<a *ngIf="!isElectrsEnabled" href="https://www.blockstream.info/block-height/{{ block.height }}" target="_blank">#{{ block.height }}</a>
|
||||
<a *ngIf="isElectrsEnabled" [routerLink]="['/explorer/block/', block.hash]">#{{ block.height }}</a>
|
||||
</div>
|
||||
<div class="block-body">
|
||||
<div class="fees">
|
||||
|
||||
@@ -16,7 +16,7 @@ export class BlockchainBlocksComponent implements OnInit, OnDestroy {
|
||||
blocksSubscription: Subscription;
|
||||
interval: any;
|
||||
trigger = 0;
|
||||
isEsploraEnabled = !!environment.esplora;
|
||||
isElectrsEnabled = !!environment.electrs;
|
||||
|
||||
constructor(
|
||||
private modalService: NgbModal,
|
||||
|
||||
Reference in New Issue
Block a user