mirror of
https://github.com/mempool/mempool.git
synced 2025-01-01 03:04:27 +01:00
Merge pull request #1278 from mempool/simon/liquid-asset-issuance-output
Handle missing asset registry assets
This commit is contained in:
commit
e3e6e63a1e
@ -172,9 +172,12 @@
|
|||||||
</td>
|
</td>
|
||||||
<td class="text-right nowrap amount">
|
<td class="text-right nowrap amount">
|
||||||
<ng-template [ngIf]="vout.asset && vout.asset !== nativeAssetId" [ngIfElse]="defaultOutput">
|
<ng-template [ngIf]="vout.asset && vout.asset !== nativeAssetId" [ngIfElse]="defaultOutput">
|
||||||
<div *ngIf="assetsMinimal && assetsMinimal[vout.asset]">
|
<div *ngIf="assetsMinimal && assetsMinimal[vout.asset] else assetNotFound">
|
||||||
<ng-container *ngTemplateOutlet="assetBox; context:{ $implicit: vout }"></ng-container>
|
<ng-container *ngTemplateOutlet="assetBox; context:{ $implicit: vout }"></ng-container>
|
||||||
</div>
|
</div>
|
||||||
|
<ng-template #assetNotFound>
|
||||||
|
{{ vout.value }} <a [routerLink]="['/assets/asset/' | relativeUrl, vout.asset]">{{ vout.asset | slice : 0 : 7 }}</a>
|
||||||
|
</ng-template>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<ng-template #defaultOutput>
|
<ng-template #defaultOutput>
|
||||||
<app-amount [satoshis]="vout.value"></app-amount>
|
<app-amount [satoshis]="vout.value"></app-amount>
|
||||||
|
Loading…
Reference in New Issue
Block a user