Liquid: Display block times and amounts correctly.

This commit is contained in:
softsimon
2020-03-25 21:29:40 +07:00
parent 43585be6a9
commit 350a06a096
8 changed files with 33 additions and 6 deletions

View File

@@ -102,7 +102,12 @@
<span class="skeleton-loader"></span>
</ng-template>
<ng-template #estimationTmpl>
~{{ 10 * txInBlockIndex + 10 }} minutes <i>({{ txInBlockIndex + 1 }} block{{ txInBlockIndex > 0 ? 's' : '' }})</i>
<ng-template [ngIf]="network === 'liquid'" [ngIfElse]="timeEstimateDefault">
&lt; {{ 1 * txInBlockIndex + 1 }} minutes <i>({{ txInBlockIndex + 1 }} block{{ txInBlockIndex > 0 ? 's' : '' }})</i>
</ng-template>
<ng-template #timeEstimateDefault>
~{{ 10 * txInBlockIndex + 10 }} minutes <i>({{ txInBlockIndex + 1 }} block{{ txInBlockIndex > 0 ? 's' : '' }})</i>
</ng-template>
</ng-template>
</td>
</tr>