diff --git a/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.html b/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.html index b727d3af2..b1313613d 100644 --- a/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.html +++ b/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.html @@ -280,29 +280,55 @@
You are currently on the waitlist for Mempool Accelerator™
-
-
-
-
-
- Accelerate to ~{{ ((userBid + estimate.txSummary.effectiveFee) / estimate.txSummary.effectiveVsize) | number : '1.0-0' }} sat/vB - Confirmation expected
- @if (!calculating) { - fee ({{ cost | number }} sats) + @if (!advancedEnabled) { + +
+
+
+ + +
+
+ +
-
- Your transaction will be prioritized by up to {{ etaInfo.hashratePercentage | number : '1.1-1' }}% of miners. - +
+
+ +
+
+ + } @else { +
+
+
+
+
+ +
+
+
+
+ Your transaction will be prioritized by up to {{ etaInfo.hashratePercentage | number : '1.1-1' }}% of miners. + +
+
-
- + }
@@ -486,13 +512,24 @@ }
+ + Accelerate to ~{{ ((userBid + estimate.txSummary.effectiveFee) / estimate.txSummary.effectiveVsize) | number : '1.0-0' }} sat/vB + Confirmation expected
+ @if (!calculating) { + fee ({{ cost | number }} sats) + } @else { + Calculating cost... + } +
+
+ @if (isLoggedIn() || canPayWithBitcoin || canPayWithCashapp) { - @@ -506,7 +543,7 @@ @if (isLoggedIn()) { - diff --git a/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts b/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts index 5db585381..e8d3a3237 100644 --- a/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts +++ b/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts @@ -62,6 +62,7 @@ export class AccelerateCheckout implements OnInit, OnDestroy { @Output() changeMode = new EventEmitter(); calculating = true; + selectedOption: 'wait' | 'accel'; error = ''; math = Math; isMobile: boolean = window.innerWidth <= 767.98; @@ -451,6 +452,13 @@ export class AccelerateCheckout implements OnInit, OnDestroy { return auth !== null; } + /** + * UI events + */ + selectedOptionChanged(event) { + this.selectedOption = event.target.id; + } + get step() { return this._step; }