2024-06-06 18:26:43 +00:00
@if (chartOnly) {
< ng-container * ngTemplateOutlet = "pieChart" ></ ng-container >
} @else {
2024-05-26 20:38:28 +00:00
< table >
< tbody >
< tr >
2024-06-27 17:50:45 +09:00
< td class = "td-width field-label" [ class ]=" chartPositionLeft ? ' chart-left ' : ''" i18n = "transaction.accelerated-to-feerate|Accelerated to feerate" > Accelerated to</ td >
< td class = "pie-chart" rowspan = "2" * ngIf = "chartPositionLeft" >
2024-06-26 18:03:14 +09:00
< ng-container * ngTemplateOutlet = "pieChart" ></ ng-container >
</ td >
2024-06-27 17:50:45 +09:00
< td class = "field-value" [ class ]=" chartPositionLeft ? ' chart-left ' : ''" >
2024-05-26 20:38:28 +00:00
< div class = "effective-fee-container" >
@if (accelerationInfo?.acceleratedFeeRate && (!tx.effectiveFeePerVsize || accelerationInfo.acceleratedFeeRate >= tx.effectiveFeePerVsize)) {
< app-fee-rate [ fee ]=" accelerationInfo . acceleratedFeeRate " ></ app-fee-rate >
} @else {
< app-fee-rate [ fee ]=" tx . effectiveFeePerVsize " ></ app-fee-rate >
}
</ div >
</ td >
2024-06-27 17:50:45 +09:00
< td class = "pie-chart" rowspan = "2" * ngIf = "!chartPositionLeft" >
2024-06-06 18:26:43 +00:00
< ng-container * ngTemplateOutlet = "pieChart" ></ ng-container >
2024-05-26 20:38:28 +00:00
</ td >
</ tr >
< tr >
2024-05-28 21:06:58 +00:00
< td class = "td-width field-label" i18n = "transaction.accelerated-by-hashrate|Accelerated to hashrate" > Accelerated by</ td >
< td class = "field-value" * ngIf = "acceleratedByPercentage" >
2024-07-02 16:46:49 +09:00
< ng-container i18n = "accelerator.x-of-hash-rate" > {{ acceleratedByPercentage }} < span class = "symbol hashrate-label" > of hashrate</ span ></ ng-container >
2024-05-26 20:38:28 +00:00
</ td >
</ tr >
</ tbody >
2024-06-06 18:26:43 +00:00
</ table >
}
< ng-template # pieChart >
< div class = "chart-container" >
@if (chartOptions && miningStats) {
< div
echarts
* browserOnly
class = "chart"
[ initOpts ]=" chartInitOptions "
[ options ]=" chartOptions "
style = "height: 72px; width: 72px;"
( chartInit )=" onChartInit ($ event )"
></ div >
} @else {
< div class = "chart-loading" >
< div class = "spinner-border text-light" ></ div >
</ div >
}
</ div >
</ ng-template >