Fixing misplaces Unknown text after the Coinbase

This commit is contained in:
softsimon 2021-12-30 16:55:42 +04:00
parent 7ce1cc5103
commit 40fb1792f4
No known key found for this signature in database
GPG Key ID: 488D7DCFB5A430D7

View File

@ -55,10 +55,11 @@
<ng-container *ngSwitchCase="vin.prevout && vin.prevout.scriptpubkey_type === 'p2pk'">
<span>P2PK</span>
</ng-container>
<ng-container *ngSwitchCase="!vin.prevout">
<span>{{ vin.issuance ? 'Issuance' : 'UNKNOWN' }}</span>
</ng-container>
<ng-container *ngSwitchDefault>
<ng-template [ngIf]="!vin.prevout" [ngIfElse]="defaultAddress">
<span>{{ vin.issuance ? 'Issuance' : 'UNKNOWN' }}</span>
</ng-template>
<ng-template #defaultAddress>
<a [routerLink]="['/address/' | relativeUrl, vin.prevout.scriptpubkey_address]" title="{{ vin.prevout.scriptpubkey_address }}">
<span class="d-block d-lg-none">{{ vin.prevout.scriptpubkey_address | shortenString : 16 }}</span>
<span class="d-none d-lg-block">{{ vin.prevout.scriptpubkey_address | shortenString : 35 }}</span>
@ -66,6 +67,7 @@
<div>
<app-address-labels [vin]="vin"></app-address-labels>
</div>
</ng-template>
</ng-container>
</div>
</td>