Transaction view.

This commit is contained in:
Simon Lindh
2019-11-10 16:44:00 +08:00
parent 839fa12eb6
commit 2dbfa323fa
26 changed files with 287 additions and 37 deletions

View File

@@ -3,7 +3,10 @@
<table style="width: 100%;">
<tr>
<td class="text-left"><b>Transaction hash</b></td>
<td class="text-right"><a href="https://www.blockstream.info/tx/{{ tx?.txid }}" target="_blank">{{ txIdShort }}</a></td>
<td class="text-right">
<a *ngIf="!isEsploraEnabled" href="https://www.blockstream.info/tx/{{ tx?.txid }}" target="_blank">{{ txIdShort }}</a>
<a *ngIf="isEsploraEnabled" [routerLink]="['/explorer/tx/', tx?.txid]">{{ txIdShort }}</a>
</td>
</tr>
<tr>
<td class="text-left"><b>Fee:</b></td>

View File

@@ -63,7 +63,3 @@
.txBubble .arrow-top-left.txBubbleText::after {
left: 20%;
}
.green-color {
color: #3bcc49;
}

View File

@@ -2,6 +2,7 @@ import { Component, OnInit, OnDestroy, HostListener } from '@angular/core';
import { ITransaction, IProjectedBlock } from '../blockchain/interfaces';
import { Subscription } from 'rxjs';
import { ITxTracking, MemPoolService } from '../services/mem-pool.service';
import { environment } from '../../environments/environment';
@Component({
selector: 'app-tx-bubble',
@@ -35,6 +36,8 @@ export class TxBubbleComponent implements OnInit, OnDestroy {
txTrackingTx: ITransaction | null = null;
txShowTxNotFound = false;
isEsploraEnabled = !!environment.esplora;
@HostListener('window:resize', ['$event'])
onResize(event: Event) {
this.moveTxBubbleToPosition();