From 08d3beed724e7758ea4e5bb40e51cf0b79bb5799 Mon Sep 17 00:00:00 2001 From: nymkappa <1612910616@pm.me> Date: Sun, 21 Jul 2024 22:38:49 +0200 Subject: [PATCH] [accelerator] on mobile, autoscroll after selection cashapp or applepay --- .../accelerate-checkout/accelerate-checkout.component.html | 4 ++-- .../accelerate-checkout/accelerate-checkout.component.ts | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) 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 80bdc1fc5..a8d799837 100644 --- a/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.html +++ b/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.html @@ -427,7 +427,7 @@ } @else if (step === 'cashapp' || step === 'applepay') { -
+

Confirm your payment

@@ -557,7 +557,7 @@ -Accelerate to ~{{ x | number : '1.0-0' }} sat/vB +Accelerate to ~{{ x | number : '1.0-0' }} sat/vB
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 d73a81bb2..0722160b6 100644 --- a/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts +++ b/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts @@ -214,10 +214,12 @@ export class AccelerateCheckout implements OnInit, OnDestroy { this.loadingCashapp = true; this.insertSquare(); this.setupSquare(); + this.scrollToElementWithTimeout('confirm-title', 'center', 100); } else if (this._step === 'applepay' && this.applePayEnabled) { this.loadingApplePay = true; this.insertSquare(); this.setupSquare(); + this.scrollToElementWithTimeout('confirm-title', 'center', 100); } else if (this._step === 'paid') { this.timePaid = Date.now(); this.timeoutTimer = setTimeout(() => {