mirror of
https://github.com/mempool/mempool.git
synced 2025-03-13 19:37:47 +01:00
Merge pull request #5478 from mempool/natsoni/ineligible-for-acceleration
Ineligible transaction link to accelerator FAQ
This commit is contained in:
commit
31469ad361
2 changed files with 23 additions and 34 deletions
|
@ -551,23 +551,23 @@
|
||||||
<td class="td-width align-items-center align-middle" i18n="transaction.eta|Transaction ETA">ETA</td>
|
<td class="td-width align-items-center align-middle" i18n="transaction.eta|Transaction ETA">ETA</td>
|
||||||
<td>
|
<td>
|
||||||
<ng-container *ngIf="(ETA$ | async) as eta; else etaSkeleton">
|
<ng-container *ngIf="(ETA$ | async) as eta; else etaSkeleton">
|
||||||
@if (eta.blocks >= 7) {
|
@if (network === 'liquid' || network === 'liquidtestnet') {
|
||||||
<span [class]="(!tx?.acceleration && acceleratorAvailable && accelerateCtaType === 'button' && !showAccelerationSummary && eligibleForAcceleration) ? 'etaDeepMempool justify-content-end align-items-center' : ''">
|
|
||||||
<span i18n="transaction.eta.not-any-time-soon|Transaction ETA mot any time soon">Not any time soon</span>
|
|
||||||
@if (!tx?.acceleration && acceleratorAvailable && accelerateCtaType === 'button' && !showAccelerationSummary && eligibleForAcceleration) {
|
|
||||||
<a class="btn btn-sm accelerateDeepMempool btn-small-height float-right" i18n="transaction.accelerate|Accelerate button label" (click)="onAccelerateClicked()">Accelerate</a>
|
|
||||||
}
|
|
||||||
</span>
|
|
||||||
} @else if (network === 'liquid' || network === 'liquidtestnet') {
|
|
||||||
<app-time kind="until" [time]="eta.time" [fastRender]="false" [fixedRender]="true"></app-time>
|
<app-time kind="until" [time]="eta.time" [fastRender]="false" [fixedRender]="true"></app-time>
|
||||||
} @else {
|
} @else {
|
||||||
<span [class]="(!tx?.acceleration && acceleratorAvailable && accelerateCtaType === 'button' && !showAccelerationSummary && eligibleForAcceleration) ? 'etaDeepMempool justify-content-end align-items-center' : ''">
|
<span [class]="(!tx?.acceleration && acceleratorAvailable && accelerateCtaType === 'button' && !showAccelerationSummary) ? 'etaDeepMempool d-flex justify-content-between' : ''">
|
||||||
|
@if (eta.blocks >= 7) {
|
||||||
|
<span i18n="transaction.eta.not-any-time-soon|Transaction ETA mot any time soon">Not any time soon</span>
|
||||||
|
} @else {
|
||||||
<app-time kind="until" [time]="eta.time" [fastRender]="false" [fixedRender]="true"></app-time>
|
<app-time kind="until" [time]="eta.time" [fastRender]="false" [fixedRender]="true"></app-time>
|
||||||
@if (!tx?.acceleration && acceleratorAvailable && accelerateCtaType === 'button' && !showAccelerationSummary && eligibleForAcceleration) {
|
|
||||||
<a class="btn btn-sm accelerateDeepMempool btn-small-height float-right" i18n="transaction.accelerate|Accelerate button label" (click)="onAccelerateClicked()">Accelerate</a>
|
|
||||||
}
|
}
|
||||||
</span>
|
@if (!tx?.acceleration && acceleratorAvailable && accelerateCtaType === 'button' && !showAccelerationSummary) {
|
||||||
<span class="eta justify-content-end">
|
<div class="d-flex accelerate">
|
||||||
|
<a class="btn btn-sm accelerateDeepMempool btn-small-height" [class.disabled]="!eligibleForAcceleration" i18n="transaction.accelerate|Accelerate button label" (click)="onAccelerateClicked()">Accelerate</a>
|
||||||
|
<a *ngIf="!eligibleForAcceleration" href="https://mempool.space/accelerator#why-cant-accelerate" target="_blank" class="info-badges ml-1" i18n-ngbTooltip="Mempool Accelerator™ tooltip" ngbTooltip="This transaction cannot be accelerated">
|
||||||
|
<fa-icon [icon]="['fas', 'info-circle']" [fixedWidth]="true"></fa-icon>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
</span>
|
</span>
|
||||||
}
|
}
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
|
@ -287,37 +287,21 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.accelerate {
|
.accelerate {
|
||||||
display: flex !important;
|
@media (min-width: 850px) {
|
||||||
align-self: auto;
|
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
background-color: var(--tertiary);
|
|
||||||
@media (max-width: 849px) {
|
|
||||||
margin-left: 5px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.etaDeepMempool {
|
.etaDeepMempool {
|
||||||
justify-content: flex-end;
|
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
align-content: center;
|
|
||||||
@media (max-width: 995px) {
|
|
||||||
justify-content: left !important;
|
|
||||||
}
|
|
||||||
@media (max-width: 849px) {
|
@media (max-width: 849px) {
|
||||||
justify-content: right !important;
|
justify-content: right !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.accelerateDeepMempool {
|
.accelerateDeepMempool {
|
||||||
align-self: auto;
|
|
||||||
margin-left: auto;
|
|
||||||
background-color: var(--tertiary);
|
background-color: var(--tertiary);
|
||||||
@media (max-width: 995px) {
|
|
||||||
margin-left: 0px;
|
|
||||||
}
|
|
||||||
@media (max-width: 849px) {
|
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.goggles-icon {
|
.goggles-icon {
|
||||||
|
@ -336,3 +320,8 @@
|
||||||
.oobFees {
|
.oobFees {
|
||||||
color: #905cf4;
|
color: #905cf4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.disabled {
|
||||||
|
opacity: 0.5;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue